0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-10-31 17:02:38 +00:00
VueTube/NUXT/pages/watch.vue
2022-03-13 19:21:41 -04:00

25 lines
546 B
Vue

<template>
<div>
<script src="https://cdn.jsdelivr.net/gh/thelevicole/youtube-to-html5-loader@4.0.1/dist/YouTubeToHtml5.js"></script>
<video :data-yt2html5="`https://www.youtube.com/watch?v=${id}`" controls width="100%" height="300vh"></video>
<p v-html="`https://www.youtube.com/watch?v=${id}`" />
</div>
</template>
<script>
export default {
data() {
return {
id: ""
}
},
fetch() {
this.id = this.$route.query.v;
},
mounted() {
new YouTubeToHtml5({
withAudio: true
});
}
}
</script>