script/record_mic/record_mic_example.html
changeset 9 4763bcd087a2
child 21 87359338ccb1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/script/record_mic/record_mic_example.html	Wed Jun 06 15:53:30 2012 +0200
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
+	<head>
+		<title>record_mic</title>
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+		<style type="text/css" media="screen">
+		html, body { height:100%; background-color: #AAAAAA;}
+		body { margin:0; padding:0; overflow:hidden; }
+		#flashContent { width:220px; height:140px; }
+		</style>
+	    <script type="text/javascript">
+// External callback function
+function setAudioUrl(u){
+    console.log("setAudioUrl u = " + u);
+}
+// External interface function
+function recorder_stopRecord(){
+    player_p = document.getElementById("record_mic");
+    player   = player_p.getElementsByTagName("embed")[0];
+    if (player){
+        player.stopRecord();
+        //output_send('call method: playVideo()');
+    }
+}
+	    </script>
+	</head>
+	<body>
+		<div id="flashContent">
+			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="220" height="140" id="record_mic" align="middle">
+                <param name="movie" value="record_mic.swf" />
+                <param name="quality" value="high" />
+                <param name="bgcolor" value="#ffffff" />
+                <param name="play" value="true" />
+                <param name="loop" value="true" />
+                <param name="wmode" value="transparent" />
+                <param name="scale" value="showall" />
+                <param name="menu" value="true" />
+                <param name="devicefont" value="false" />
+                <param name="salign" value="" />
+                <param name="allowScriptAccess" value="always" />
+                <param name="allowFullScreen" value="true" />
+                <param name="flashvars" value="playVisible=true">
+                <embed src="record_mic.swf" quality="high" bgcolor="#ffffff"
+                     width="220" height="140" name="ExternalInterfaceExample" align="middle"
+                     play="true" loop="false" quality="high" allowScriptAccess="always" 
+                     type="application/x-shockwave-flash" allowFullScreen="true" wmode="transparent" 
+                     flashvars="playVisible=true"
+                     pluginspage="http://www.macromedia.com/go/getflashplayer">
+                </embed>
+            </object>
+			
+		</div>
+		<input type="button" class="button" onclick="javascript:recorder_stopRecord();" value="stopRecord" />
+	</body>
+</html>