微信小程序video组件全屏后,再次出门视频,视频底部控制栏消失,视频也显示异常
![在我的怀里](https://img-cdn-tc.dcloud.net.cn/account/identicon/1dd50a143242e8f0b8b91f420e58fc7e.png)
- 发布:2023-10-27 17:06
- 更新:2023-10-28 14:46
- 阅读:644
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 11
HBuilderX类型: 正式
HBuilderX版本号: 3.8.7
第三方开发者工具版本号: 1.06.2301160
基础库版本号: 3.1.4
项目创建方式: HBuilderX
操作步骤:
预期结果:
希望官方尽快回复
希望官方尽快回复
实际结果:
希望官方尽快回复
希望官方尽快回复
bug描述:
<video :src="item.enclosure[0].url" id="myVideo" style="width: 300px;height: 225px;" play-btn-position="center" @fullscreenchange="fullscreenchange" @play="playFullscreen" :show-center-play-btn="true" :controls="controls" :show-play-btn="true" class="mt-10"></video>
playFullscreen(){
this.videoContext = uni.createVideoContext('myVideo',this);
this.videoContext?.requestFullScreen();
},
fullscreenchange(event){
console.log('event',event.detail)
if(event.detail.fullScreen){
this.videoContext?.play();
this.showCenterPlayBtn = false;
this.controls = true;
this.showPlayBtn = true;
}else{
this.videoContext?.pause();
this.showCenterPlayBtn = true;
this.controls = true;
this.showPlayBtn = true;
}
},
在我的怀里 (作者)
是的, 现在就用的这个方法,给忘记了
2023-11-13 17:23