Address suggestions from #27
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
<script lang="ts">
|
||||
// Importing video-js
|
||||
import Hls from 'hls.js'
|
||||
import { getSetting } from '@/settingsManager'
|
||||
|
||||
export default {
|
||||
name: 'VideoJsPlayer',
|
||||
@ -52,7 +53,9 @@ export default {
|
||||
hls.loadSource(this.audioOnlyManifest || "");
|
||||
hls.attachMedia(video);
|
||||
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||
video.play();
|
||||
if(getSetting("autoplay")) {
|
||||
video.play();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user