<view v-for="(item, index) in list">
<view v-if="item.type == 'video'" >
<video
:id="'video'+index"
:src=item.VideoURL
@fullscreenclick="clickVideoFullScreen(index)"
danmu-list=[]
enable-danmu = "false"
show-fullscreen-btn = true
danmu-btn
:muted ='getmuted(index)'
object-fit = ""
show-mute-btn = "true"
poster = item.URL
controls="false"
enable-progress-gesture="true"
vslide-gesture-in-fullscreen="true"
autoplay = "true"
loop="true"
enable-play-gesture = "true"
direction = "90"
>
<cover-view class="video_cover" @click="clickVideoToPlay(index)"></cover-view>
</video>
</view>
</view>
function clickVideoFullScreen(index){
//关闭全屏
}
function clickVideoToPlay(index){
//全屏播放视频
this.videoContext = uni.createVideoContext('video'+index);
this.videoContext.play();
this.videoContext.requestFullScreen(90)
}