mirror of
https://github.com/videojs/video.js.git
synced 2025-01-21 11:02:08 +02:00
fix(html5): loop video el attributes in order (#4805)
Due to historical issues, we loops the settings attributes like muted and autoplay in reverse order but we want to loop them in order.
This commit is contained in:
parent
295889b36b
commit
409a13e1f6
@ -315,7 +315,7 @@ class Html5 extends Tech {
|
||||
// when iOS/Safari or other browsers attempt to autoplay.
|
||||
const settingsAttrs = ['loop', 'muted', 'playsinline', 'autoplay'];
|
||||
|
||||
for (let i = settingsAttrs.length - 1; i >= 0; i--) {
|
||||
for (let i = 0; i < settingsAttrs.length; i++) {
|
||||
const attr = settingsAttrs[i];
|
||||
const value = this.options_[attr];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user