test/integration/integ_player_bab_ldt.html
changeset 890 3fcc0d2f2641
parent 886 ab69ff6fa02b
child 893 c96c64fc1a6b
equal deleted inserted replaced
886:ab69ff6fa02b 890:3fcc0d2f2641
    24 	
    24 	
    25     output_send('Player is ready !');
    25     output_send('Player is ready !');
    26 }
    26 }
    27 function onBabStateChange(t){
    27 function onBabStateChange(t){
    28 	// States can be : seeking (3), paused (2), playing (1)
    28 	// States can be : seeking (3), paused (2), playing (1)
    29 	output_send("state = " + t);
    29 	//output_send("state = " + t);
    30 }
    30 }
    31 function onBabVideoProgress(data)
    31 function onBabVideoProgress(data)
    32 {
    32 {
    33     progress.value = 'mediaTime: ' + data.mediaTime + ' s';
    33     progress.value = 'mediaTime: ' + data.mediaTime + ' s';
    34 }
    34 }
    97     if (player){
    97     if (player){
    98         var value = player.getVolume();
    98         var value = player.getVolume();
    99         output_send('call method: getVolume() à ' + value);
    99         output_send('call method: getVolume() à ' + value);
   100     }
   100     }
   101 }
   101 }
       
   102 function player_playInstruction(){
       
   103     if (player){
       
   104         var value = Math.floor(Math.random() * 9) + 1;
       
   105         player.playInstruction(value);
       
   106         output_send('call method: player_playInstruction() à ' + value);
       
   107     }
       
   108 }
   102 
   109 
   103 		</script>
   110 		</script>
   104 	</head>
   111 	</head>
   105 	<body>
   112 	<body>
   106 		<div id="flashContent">
   113 		<div id="flashContent">
   135 			<input type="button" class="button" onclick="javascript:player_isMuted();" value="isMuted" />
   142 			<input type="button" class="button" onclick="javascript:player_isMuted();" value="isMuted" />
   136 			<input type="button" class="button" onclick="javascript:player_mute();" value="mute" />
   143 			<input type="button" class="button" onclick="javascript:player_mute();" value="mute" />
   137 			<input type="button" class="button" onclick="javascript:player_unMute();" value="unMute" />
   144 			<input type="button" class="button" onclick="javascript:player_unMute();" value="unMute" />
   138 			<input type="button" class="button" onclick="javascript:player_getVolume();" value="getVolume" />
   145 			<input type="button" class="button" onclick="javascript:player_getVolume();" value="getVolume" />
   139 			<input type="button" class="button" onclick="javascript:player_setVolume();" value="setVolume" />
   146 			<input type="button" class="button" onclick="javascript:player_setVolume();" value="setVolume" />
       
   147             <input type="button" class="button" onclick="javascript:player_playInstruction();" value="playInstruction" />
   140 			<br/><textarea id="demo_output" rows="10" style="width:500px;"></textarea><textarea id="demo_progress" >bla</textarea>
   148 			<br/><textarea id="demo_output" rows="10" style="width:500px;"></textarea><textarea id="demo_progress" >bla</textarea>
   141 		</div>
   149 		</div>
   142 	</body>
   150 	</body>
   143 </html>
   151 </html>