X
Nhấn vào đây để đến phiên bản di động của trang web.

Diễn đàn trợ giúp

How to loop webm videos?

Được đăng

I've opened a webm video file in a new tab. It plays well, but only once and doesn't loop. How do I make it loop?

I've opened a webm video file in a new tab. It plays well, but only once and doesn't loop. How do I make it loop?

Giải pháp được chọn

I wanted Webm files to loop as well and I created a userscript for this. You can find it here: https://github.com/WhatIsThisImNotGoodWithComputers/webm-looper-userscript

Đọc câu trả lời này trong ngữ cảnh 11

Chi tiết hệ thống bổ sung

Phần bổ trợ đã cài đặt

  • Shockwave Flash 12.0 r0
  • Adobe Shockwave for Director Netscape plug-in, version 12.0.7.148

Ứng dụng

  • Chuỗi đại diện người dùng: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0

Thông tin chi tiết

jscher2000
  • Top 10 Contributor
8757 giải pháp 71654 câu trả lời
Được đăng

Câu trả lời hữu ích

When a page contains the <video src="some.webm"> tag, it can easily set loop to true.

However, when media is opened in a tab directly in the "stand-alone player", it is governed by Firefox's default HTML. I'm not aware of any available setting to turn on looping in this context. Someone else might have an idea, or perhaps there is an add-on to do it.

As a workaround, what do you think about a bookmarklet? You would click this to turn on looping (before the video ends). Here's how to test it out:

(1) Select and copy the script (it's all one line)

javascript:var vids=document.getElementsByTagName("video"); for (i=0; i<vids.length; i++) vids[i].setAttribute("loop", "true"); void 0;

(2) Right-click your Bookmarks Toolbar and choose New Bookmark

If you do not normally display the Bookmarks Toolbar, then you can create it on the Bookmarks Menu instead. You can create it somewhere on the menu in the Library dialog (Ctrl+Shift+b) and then drag it to the preferred position.

(3) Paste the script into the Location field

(4) Type the name of your choice into the Name field, for example, LoopVids

(5) Click Add to save it

To run the script on a page, click the button. That's it.

When a page contains the &lt;video src="some.webm"> tag, it can easily set loop to true. However, when media is opened in a tab directly in the "stand-alone player", it is governed by Firefox's default HTML. I'm not aware of any available setting to turn on looping in this context. Someone else might have an idea, or perhaps there is an add-on to do it. As a workaround, what do you think about a bookmarklet? You would click this to turn on looping (before the video ends). Here's how to test it out: (1) Select and copy the script (it's all one line) javascript:var vids=document.getElementsByTagName("video"); for (i=0; i&lt;vids.length; i++) vids[i].setAttribute("loop", "true"); void 0; (2) Right-click your Bookmarks Toolbar and choose New Bookmark ''If you do not normally display the Bookmarks Toolbar, then you can create it on the Bookmarks Menu instead. You can create it somewhere on the menu in the Library dialog (Ctrl+Shift+b) and then drag it to the preferred position.'' (3) Paste the script into the Location field (4) Type the name of your choice into the Name field, for example, LoopVids (5) Click Add to save it To run the script on a page, click the button. That's it.

Người tạo câu hỏi

That works, thanks. I'd rather have some setting i could set once, but this works too.

That works, thanks. I'd rather have some setting i could set once, but this works too.
WhatIsThisImNotGoodWithCompute 1 giải pháp 1 câu trả lời
Được đăng

Giải pháp được chọn

I wanted Webm files to loop as well and I created a userscript for this. You can find it here: https://github.com/WhatIsThisImNotGoodWithComputers/webm-looper-userscript

I wanted Webm files to loop as well and I created a userscript for this. You can find it here: https://github.com/WhatIsThisImNotGoodWithComputers/webm-looper-userscript