0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 11:15:14 +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"
@seeking="seeking = !seeking"
/>
<sponsorblock v-if="$refs.player" :video="$refs.player" />
<sponsorblock
v-if="$refs.player"
:video="$refs.player"
:videoid="videoid"
/>
</div>
</template>
@ -201,6 +205,10 @@ export default {
type: Object,
required: true,
},
videoid: {
type: String,
required: true,
},
},
data() {
return {

View file

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

View file

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