Load media after UI is built

This commit is contained in:
Sam Potts 2018-11-03 21:17:32 +11:00
parent 65eb5c1b8b
commit 67f908aa8d

View File

@ -114,12 +114,9 @@ const source = {
// HTML5 stuff
if (this.isHTML5) {
// Setup captions
if ('tracks' in input) {
if (Object.keys(input).includes('tracks')) {
source.insertElements.call(this, 'track', input.tracks);
}
// Load HTML5 sources
this.media.load();
}
// If HTML5 or embed but not fully supported, setupInterface and call ready now
@ -128,6 +125,11 @@ const source = {
ui.build.call(this);
}
if (this.isHTML5) {
// Load HTML5 sources
this.media.load();
}
// Update the fullscreen support
this.fullscreen.update();
},