在我的怀里
在我的怀里
  • 发布:2023-10-27 17:06
  • 更新:2023-10-28 14:46
  • 阅读:644

【报Bug】uniapp微信小程序video标签全屏后,底部控制栏消失不见,视频也显示异常

分类:uni-app

产品分类: uniapp/小程序/微信

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 11

HBuilderX类型: 正式

HBuilderX版本号: 3.8.7

第三方开发者工具版本号: 1.06.2301160

基础库版本号: 3.1.4

项目创建方式: HBuilderX

操作步骤:

微信小程序video组件全屏后,再次出门视频,视频底部控制栏消失,视频也显示异常

预期结果:

希望官方尽快回复

实际结果:

希望官方尽快回复

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-10-27 17:06 负责人:无 分享
已邀请:
喜欢技术的前端

喜欢技术的前端 - QQ---445849201

这种列表上,可以先放一个背景图或者视频第一帧,再加一个播放按钮,点击播放按钮,才去实际播放视频,负责列表上多个视频播放也是个问题

  • 在我的怀里 (作者)

    是的, 现在就用的这个方法,给忘记了

    2023-11-13 17:23

要回复问题请先登录注册