1
0
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:
Gary Katsevman 2017-12-13 14:49:02 -05:00 committed by GitHub
parent 295889b36b
commit 409a13e1f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];