wx.createVideoContext 的 requestFullScreen调用无效? 我创建了多个wx.createVideoContext之后。执行play()不生效? video的pause、seek、play在自定义组件中无效? 使用wx.createInnerAudioContext的play()方法播报的音频无法采集? 相关文档 wx.createVideoContext: 小程序/开发/API/媒体/视频/wx.createVideoContext wx.c...
有解决方法吗
在自定义组件下,第二个参数传入组件实例this,以操作组件内'video'组件。 需要注意的是在自定义组件内部需要传第二个参数,其他情况不用,同时获取视频组件后执行play方法,会发现在模拟器中视频不会执行播放,困惑许久,发现在真机中可以执行播放动作,意外不意外?!!趟过此坑...
show-fullscreen-btn="{{video.showFullScreenButton}}" show-play-btn="{{video.showPlayButton}}" show-center-play-btn="{{video.showCenterButton}}" object-fit="{{video.objectFit}}" autoplay="{{video.autoPlay}}" direction="{{video.directionWhenFullScreen}}" initial-time="{{video.initTime}...
createVideoContext第二个参数传入this,把组件实例传进去
表示组件本身的参数this this.videoContext = wx.createVideoContext('myVideo', this) } } }, methods: { // 点击播放 handleTapPlay(){ console.log(this.videoContext) this.setData({ coverShow: false }) setTimeout(_ => { console.log('调用播放') this.videoContext.play()//无效 }, 200) ...
https://developers.weixin.qq.com/miniprogram/dev/component/swiper.html
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/...