Address suggestions from #27

This commit is contained in:
dragongoose
2023-09-08 22:23:33 -04:00
parent cab9113509
commit dc58e60add
6 changed files with 23 additions and 10 deletions

View File

@ -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();
}
});
}
}