|
|
@@ -3,8 +3,23 @@
|
|
|
<div slot="header">
|
|
|
<span>{{ organizer }}{{ orgname }}</span>
|
|
|
</div>
|
|
|
- <div class="video" @click="showFullScreen" :id="name" style="width:100%;height:400px">
|
|
|
+ <div class="video" :id="name" style="width:100%;height:400px">
|
|
|
<!-- <div class="bottom"></div> -->
|
|
|
+
|
|
|
+ <video
|
|
|
+ v-if="videoUrl"
|
|
|
+ :src="videoUrl"
|
|
|
+ controlsList="nodownload noremote footbar"
|
|
|
+ controls="controls"
|
|
|
+ style="width:100%;height:400px"
|
|
|
+ oncontextmenu="return false;"
|
|
|
+ ref="video"
|
|
|
+ autoplay
|
|
|
+ loop
|
|
|
+ muted
|
|
|
+ >
|
|
|
+ 您的浏览器不支持 video 标签。
|
|
|
+ </video>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
</template>
|
|
|
@@ -17,7 +32,14 @@ export default {
|
|
|
props: ['token', 'device', 'name', 'organizer', 'orgname'],
|
|
|
data() {
|
|
|
return {
|
|
|
- player: null
|
|
|
+ player: null,
|
|
|
+ list: [
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-47-24CxnKwMnv.mp4',
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-15-30-43nvcwuumz.mp4',
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-33-40dhjGRCso.mp4',
|
|
|
+ 'https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/video/2021-03-19-14-47-40sDbsFufH.mp4'
|
|
|
+ ],
|
|
|
+ videoUrl: ''
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -53,6 +75,14 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.player.fullScreen();
|
|
|
+ },
|
|
|
+ initVideo(index = 0) {
|
|
|
+ this.videoUrl = this.list[index % this.list.length];
|
|
|
+ // this.$nextTick(() => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // this.$refs.video.play();
|
|
|
+ // }, 500);
|
|
|
+ // });
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -71,6 +101,10 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
+ video {
|
|
|
+ background-color: #000;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.bottom {
|