feat: Beta Player Registry Key

as the title says
This commit is contained in:
Kenny 2022-04-05 12:39:27 -04:00
parent 08f59ee58b
commit ca794fa8bc
2 changed files with 10 additions and 6 deletions

View File

@ -106,11 +106,9 @@
export default {
computed: {
roundTweak: {
get() {
return this.$store.state.tweaks.roundTweak;
}
},
roundTweak() {
return this.$store.state.tweaks.roundTweak;
}
},
data() {

View File

@ -5,10 +5,11 @@
style="position: sticky; top: 0; z-index: 696969"
:vid-src="vidSrc"
ref="player"
v-if="useBetaPlayer != true"
/>
<!-- VueTube Player V1 -->
<!-- <VTPlayerV1 :sources="sources" v-if="sources.length > 0" />-->
<VTPlayerV1 :sources="sources" v-if="useBetaPlayer == true" />
<v-card v-if="loaded" class="ml-2 mr-2 background" flat>
<v-card-title
@ -138,8 +139,11 @@ export default {
recommends: null,
loaded: false,
interval: null,
useBetaPlayer: false,
};
},
watch: {
// Watch for change in the route query string (in this case, ?v=xxxxxxxx to ?v=yyyyyyyy)
$route: {
@ -160,6 +164,8 @@ export default {
mounted() {
this.startTime = Math.floor(Date.now() / 1000);
this.getVideo();
this.useBetaPlayer = localStorage.getItem('debug.BetaPlayer');
},
destroyed() {