mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-29 14:43:04 +00:00
21 lines
327 B
Vue
21 lines
327 B
Vue
<template>
|
|
<div>
|
|
<video controls autoplay :src="vidSrc" width="100%" height="300vh" />
|
|
{{ vidSrc }}
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
vidSrc: ""
|
|
}
|
|
},
|
|
mounted() {
|
|
this.$youtube.getVideo('wykQsTJElD4', (data) => {
|
|
this.vidSrc = data;
|
|
})
|
|
}
|
|
}
|
|
</script>
|