Enable auto start for HLS if autoadvance is set

This commit is contained in:
pkulkark
2019-12-16 11:54:57 +05:30
parent b2be6b3ba2
commit a1bb42b385

View File

@@ -42,7 +42,12 @@
if (config.browserIsSafari) {
this.videoEl.attr('src', config.videoSources[0]);
} else {
this.hls = new HLS({autoStartLoad: false});
// load auto start if auto_advance is enabled
if (config.state.auto_advance) {
this.hls = new HLS({autoStartLoad: true});
} else {
this.hls = new HLS({autoStartLoad: false});
}
this.hls.loadSource(config.videoSources[0]);
this.hls.attachMedia(this.video);