mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 19:25:16 +00:00
videoid prop
This commit is contained in:
parent
d9f9edf8a8
commit
f2d2038fa5
3 changed files with 14 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -9,6 +9,10 @@ export default {
|
|||
type: Object,
|
||||
required: true,
|
||||
},
|
||||
videoid: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
let sponsorBlock = [];
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
ref="player"
|
||||
:video="video"
|
||||
:sources="sources"
|
||||
:videoid="$route.query.v"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue