<video
@error="videoErrorCallback"
:danmu-btn="flase"
:show-center-play-btn="flase"
:enable-danmu="flase"
:poster="live_course_bg"
id="myVideo"
ref="myVideo"
:controls = "isCotrol"
@click="videoClick"
@play="videoPlay"
:src="videoUrl"
:initial-time="initialTime"
@ended="videoEnded"
@timeupdate="videoTimeUpdate"
@fullscreenchange="screenChange"
style="position: relative;"
>
<cover-image src="" style="position: absolute;top: 10rpx;" :style="{'left':isWatermark?'10rpx':'100rpx','width': isWatermark?'158rpx':'138rpx','height':isWatermark? '31rpx':'28rpx'}"></cover-image>
</video>
data(){
return{
isWatermark:true,
}
},
methods:{
screenChange(e){
let fullScreen = e.detail.fullScreen;
console.log(fullScreen)
if(fullScreen){
this.isWatermark = false
}else{
this.isWatermark = true
}
},
}