Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

When you will implement the HTML5 video loop attribute?

  • 3 件の返信
  • 472 人がこの問題に困っています
  • 1 回表示
  • 最後の返信者: rthawkcom

more options

I know there is an add-on "Media Loop" for Firefox that implements the loop attribute for HTML5 videos/audios, but I don't want to force every visitor of my site to install it.

I know there is an add-on "Media Loop" for Firefox that implements the loop attribute for HTML5 videos/audios, but I don't want to force every visitor of my site to install it.

すべての返信 (3)

more options

A quick Jquery solution

  • $("#yourID").bind('ended', function(){
  • this.play();
  • });

この投稿は TimVs.be により に変更されました

more options

or just add to the video tag: onended="this.play()" No need for Jquery!

more options

Just how do you add it to the video tag!? Next time, post a working example.

document.getElementById('video').addEventListener("ended", function(){this.play();});