script/record_mic/record_mic_example.html
changeset 9 4763bcd087a2
child 21 87359338ccb1
equal deleted inserted replaced
8:84aba7419b17 9:4763bcd087a2
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
       
     2 <html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
       
     3 	<head>
       
     4 		<title>record_mic</title>
       
     5 		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
     6 		<style type="text/css" media="screen">
       
     7 		html, body { height:100%; background-color: #AAAAAA;}
       
     8 		body { margin:0; padding:0; overflow:hidden; }
       
     9 		#flashContent { width:220px; height:140px; }
       
    10 		</style>
       
    11 	    <script type="text/javascript">
       
    12 // External callback function
       
    13 function setAudioUrl(u){
       
    14     console.log("setAudioUrl u = " + u);
       
    15 }
       
    16 // External interface function
       
    17 function recorder_stopRecord(){
       
    18     player_p = document.getElementById("record_mic");
       
    19     player   = player_p.getElementsByTagName("embed")[0];
       
    20     if (player){
       
    21         player.stopRecord();
       
    22         //output_send('call method: playVideo()');
       
    23     }
       
    24 }
       
    25 	    </script>
       
    26 	</head>
       
    27 	<body>
       
    28 		<div id="flashContent">
       
    29 			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="220" height="140" id="record_mic" align="middle">
       
    30                 <param name="movie" value="record_mic.swf" />
       
    31                 <param name="quality" value="high" />
       
    32                 <param name="bgcolor" value="#ffffff" />
       
    33                 <param name="play" value="true" />
       
    34                 <param name="loop" value="true" />
       
    35                 <param name="wmode" value="transparent" />
       
    36                 <param name="scale" value="showall" />
       
    37                 <param name="menu" value="true" />
       
    38                 <param name="devicefont" value="false" />
       
    39                 <param name="salign" value="" />
       
    40                 <param name="allowScriptAccess" value="always" />
       
    41                 <param name="allowFullScreen" value="true" />
       
    42                 <param name="flashvars" value="playVisible=true">
       
    43                 <embed src="record_mic.swf" quality="high" bgcolor="#ffffff"
       
    44                      width="220" height="140" name="ExternalInterfaceExample" align="middle"
       
    45                      play="true" loop="false" quality="high" allowScriptAccess="always" 
       
    46                      type="application/x-shockwave-flash" allowFullScreen="true" wmode="transparent" 
       
    47                      flashvars="playVisible=true"
       
    48                      pluginspage="http://www.macromedia.com/go/getflashplayer">
       
    49                 </embed>
       
    50             </object>
       
    51 			
       
    52 		</div>
       
    53 		<input type="button" class="button" onclick="javascript:recorder_stopRecord();" value="stopRecord" />
       
    54 	</body>
       
    55 </html>