大家好,我是你的好朋友思创斯。今天说一说vue视频播放_vue打造云平台,希望您对编程的造诣更进一步.
点击显示录像信息:
效果图:
代码实现:
<template>
<el-button type="text" @click="lookexamvideo(scope.row)" >查看考试录像</el-button>
<el-dialog title="查看考试录像"
:close-on-click-modal="false"
:close-on-press-escape="false"
:visible.sync="videodialog"
width="550px" style="text-align:center;margin-top:70px;"
>
<video width="500" v-if="videodialog" :id="tcplayerid" height="270" class="tc-video-container" playsinline webkit-playinline x5-playinline></video>
</el-dialog>
</template>
<script>
export default{
name:'detail'
}
data(){
return{
tcplayerid: 'tcplayer' date.now(),
player: null,
videofileid: '',
videoappid: '',
videodialog:false,//查看录像
}
},
methods:{
//---------------------------------初始化腾讯云播放器------------------------------
getvideolang (fileid, appid) {
const playerparam = {
fileid: fileid,
appid: appid
}
this.player = window.tcplayer(this.tcplayerid, playerparam)
},
// -------------------------------------查看考试录像----------------------------------
lookexamvideo(row){
this.videodialog=true
let self = this
settimeout(() => {
self.videofileid = 'xxx'//fileid
self.videoappid = 'xxx'//appid
self.$nexttick(() => {
self.getvideolang(self.videofileid, self.videoappid)
})
},100)
},
}
</script>
是否还在为ide开发工具频繁失效而烦恼,来吧关注以下公众号获取最新激活方式。亲测可用!
【正版授权,激活自己账号】: jetbrains全家桶ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 自己使用,支持jetbrains家族下所有ide…
文章由思创斯整理,转载请注明出处:https://ispacesoft.com/118813.html