相关疑难解决方法(0)

HTML5音频从Firefox中的错误位置开始

我正在尝试播放mp3文件,我想跳转到文件中的特定位置.在Windows上的Chrome 33中,文件跳转到了正确的位置(与在本地播放mp3的VLC相比),但在Windows上的Firefox 28中,它播放得太远了,在Internet Explorer 11中它播放得太远了.

它曾经在Firefox 27及更早版本中正常工作.

有没有更好的方法呢?


编辑:问题甚至不需要SoundManager2.您只需使用<audio>Firefox中的标记即可复制相同的问题.这两行是重现它所需的所有代码:

<audio autoplay id="audio" src="http://ivdemo.chaseits.co.uk/enron/20050204-4026(7550490)a.mp3" controls preload></audio>
<button onclick="javascript:document.getElementById('audio').currentTime = 10;">Jump to 10 secs "...be with us in, er, 1 minute...  ok" </button>
Run Code Online (Sandbox Code Playgroud)

在这里试试:http://jsfiddle.net/cpickard/29Gt3/

编辑:尝试Firefox夜间,没有任何改进.我在bugzilla 中将其报告为bug 994561.现在仍在寻找解决方法.

javascript html5

11
推荐指数
2
解决办法
1932
查看次数

标签 统计

html5 ×1

javascript ×1