Fix autoplay next video

This commit is contained in:
root
2021-11-04 21:25:27 +05:30
parent 810d7785da
commit 0a37fa6790
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -6,7 +6,7 @@
:video="video"
:skip-to-time="'t' in $route.query ? Number($route.query.t) : null"
:sponsors="sponsors"
:selectedAutoPlay="$store.getters['prefs/getPreferenceBoolean']('autoplay')"
:selectedAutoPlay="isAutoplayEnabled"
:selectedAutoLoop="selectedAutoLoop"
@videoEnded="videoEnded"
/>
@@ -70,7 +70,7 @@
</div>
<div>
<!-- TODO translate -->
<v-checkbox dense :value="isAutoplayEnabled" @change="onAutoplayChg" label="Autoplay next video" />
<v-checkbox dense :value="isAutoplayEnabled" @change="onAutoplayChg" label="Autoplay Next Video" />
<v-checkbox dense v-model="selectedAutoLoop" label="Loop this video" />
</div>
</v-card-text>
@@ -306,7 +306,7 @@ export default {
},
computed: {
isAutoplayEnabled () {
return this.$store.getters['prefs/getPreferenceBoolean']('autoplay')
return this.$store.getters['prefs/getPreferenceBoolean']('autoplay', false)
}
},
components: {
+1
View File
@@ -6,6 +6,7 @@ const PrefsStore = {
// Declaring boolean values here because v-simple-checkbox has a bug (???) which renders it unable to have internal state
prefs: {
playerAutoplay: true,
autoplay: false,
listen: false
}
}),