script/record_mic/record_mic_example.html
author ymh <ymh.work@gmail.com>
Mon, 27 Jan 2020 13:58:45 +0100
changeset 117 cc54f8f95493
parent 21 87359338ccb1
permissions -rw-r--r--
Added tag V00.04.03 for changeset 5d4b0ecc9d51

<!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:160px; }
		</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="160" 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="160" 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>