0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-26 21:23:02 +00:00

videoid prop

This commit is contained in:
Nikita Krupin 2022-06-01 00:00:54 -04:00
parent d9f9edf8a8
commit f2d2038fa5
3 changed files with 14 additions and 1 deletions

View file

@ -162,7 +162,11 @@
:controls="controls" :controls="controls"
@seeking="seeking = !seeking" @seeking="seeking = !seeking"
/> />
<sponsorblock v-if="$refs.player" :video="$refs.player" /> <sponsorblock
v-if="$refs.player"
:video="$refs.player"
:videoid="videoid"
/>
</div> </div>
</template> </template>
@ -201,6 +205,10 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
videoid: {
type: String,
required: true,
},
}, },
data() { data() {
return { return {

View file

@ -9,6 +9,10 @@ export default {
type: Object, type: Object,
required: true, required: true,
}, },
videoid: {
type: String,
required: true,
},
}, },
mounted() { mounted() {
let sponsorBlock = []; let sponsorBlock = [];

View file

@ -8,6 +8,7 @@
ref="player" ref="player"
:video="video" :video="video"
:sources="sources" :sources="sources"
:videoid="$route.query.v"
/> />
</div> </div>