js播放wav格式的录音文件

时间:2014-08-11 15:27:14   收藏:0   阅读:587


<input type="button" onclick="playSound(‘wavFileId‘);" value="play"/>

<embed id="wavFileId"
       src="c://fileRecord/20140729/006/20140729095707000---Out-006.wav"
       width="0"
       height="0"
       loop="false"
       autostart="false">
</embed>

<script type="text/javascript">
function playSound(id)
{
  var node=document.getElementById(id);
  alert(id);
  alert(node.src);
  if(node!=null)
  {
     node.Play();
  }
}
</script>

js播放wav格式的录音文件,布布扣,bubuko.com

原文:http://my.oschina.net/u/727394/blog/299982

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!