针对< video>的解决方法Firefox中的循环属性 [英] Workaround for <video> loop attribute in Firefox
本文介绍了针对< video>的解决方法Firefox中的循环属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道在Firefox中循环HTML5 < video>
元素的解决方法(JavaScript,我猜)。 Firefox目前不支持循环
属性。
Does anyone know of a workaround (JavaScript, I'd guess) for looping HTML5 <video>
elements in Firefox. The loop
attribute isn't currently supported in Firefox.
推荐答案
Don没有任何视频需要测试,但在使用jQuery的firefox支持论坛上找到了一个解决方案,你可以试试看:
Don't have any videos to test with but found a solution on the firefox support forums using jQuery that you can try out:
$("#yourID").bind('ended', function(){
this.play();
});
http://support.mozilla.com/zh-CN/questions/747220
这篇关于针对< video>的解决方法Firefox中的循环属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文