We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65eb5c1 commit 67f908aCopy full SHA for 67f908a
src/js/source.js
@@ -114,12 +114,9 @@ const source = {
114
// HTML5 stuff
115
if (this.isHTML5) {
116
// Setup captions
117
- if ('tracks' in input) {
+ if (Object.keys(input).includes('tracks')) {
118
source.insertElements.call(this, 'track', input.tracks);
119
}
120
-
121
- // Load HTML5 sources
122
- this.media.load();
123
124
125
// If HTML5 or embed but not fully supported, setupInterface and call ready now
@@ -128,6 +125,11 @@ const source = {
128
ui.build.call(this);
129
126
130
127
+ if (this.isHTML5) {
+ // Load HTML5 sources
+ this.media.load();
131
+ }
132
+
133
// Update the fullscreen support
134
this.fullscreen.update();
135
},
0 commit comments