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"
|
: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 {
|
||||||
|
|
|
@ -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 = [];
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
ref="player"
|
ref="player"
|
||||||
:video="video"
|
:video="video"
|
||||||
:sources="sources"
|
:sources="sources"
|
||||||
|
:videoid="$route.query.v"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue