在onshow里面直接写全屏
this.videoContext = wx.createVideoContext(‘myVideo’, this);
this.videoContext.requestFullScreen({ direction: 90 });
视频播放结束后,自动退出全屏
this.videoContext = wx.createVideoContext(‘myVideo’, this);
this.videoContext.exitFullScreen(); //退出全屏
小程序视频自动全屏,播放结束后自动退出全屏
最新推荐文章于 2024-02-17 17:32:04 发布