admin管理员组文章数量:1402971
I don't know why but it doesn't work. I have this:
function stop()
{
audio.pause();
audio.currentTime = 0;
}
When I change the value of currentTime to 0, nothing changes...that is, currentTime continues having the previous value.
I don't know why but it doesn't work. I have this:
function stop()
{
audio.pause();
audio.currentTime = 0;
}
When I change the value of currentTime to 0, nothing changes...that is, currentTime continues having the previous value.
Share Improve this question asked Jun 6, 2013 at 15:55 Daniel Garcia SanchezDaniel Garcia Sanchez 2,3445 gold badges22 silver badges35 bronze badges 4- What platform or browser are you seeing this behavior on? I could not reproduce your issue: jsfiddle/8SPs7 – apsillers Commented Jun 6, 2013 at 16:25
- I'm trying with chrome – Daniel Garcia Sanchez Commented Jun 7, 2013 at 6:15
- 1 Found the problem!! It doesn't seem work well with .mp3 file, your jsfiddle contains a .ogg file...I changed it adding a mp3, and it doesn't work...jsfiddle/8SPs7/3 – Daniel Garcia Sanchez Commented Jun 7, 2013 at 6:56
-
I have an mp3 and setting it to currentTime = 0 does not do anything. Chrome or Firefox. No effect..
本文标签: javascripthtml5 audio currentTime doesn39t workStack Overflow
版权声明:本文标题:javascript - html5 audio currentTime doesn't work - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744192035a2594560.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论