html52.com
我爱小程序-开发者交流社区

视屏播放播到一半卡死黑屏

问题模块 框架类型 问题类型 API/组件名称 终端类型 操作系统 微信版本 基础库版本
API和组件 小程序 Bug wx.createVideoContext 最新 1.9.91


视屏播到一半卡死黑屏怎样解决 有人说加custom-cache="{{false}}" 一样很慢

苹果7plus 微信6.6.6

video   id "myVideo"   objectFit "fill"   style 'width:750rpx;height:0rpx;'   src "{{detail.video}}"   controls  show-center-play-btn "{{!show}}"   direction "{{90}}"   bindwaiting "bindwaiting"   bindended "bindended"    bindfullscreenchange "bindfullscreenchange" >
onReady() {
     this .videoCtx = wx.createVideoContext( 'myVideo' )
   },
   
   bindwaiting: function (){
     console.log( "bindwaiting" );
     console.log( this .videoCtx);
   },
   bindended(){
     console.log( "hhhh" );
     this .videoCtx.pause();
     this .setData({ show:  true   })
   },
   binderror(){
     this .videoCtx.pause();
     this .setData({ show:  true   })
   },
   play(){
     this .setData({ show:  false })
     this .videoCtx.requestFullScreen();
 
   },
   pause() {
     this .videoCtx.pause();
   },
   bindfullscreenchange: function (e){
     console.log(e);
     var   that= this ;
     if (e.detail.fullScreen){
 
     else {
       
       that.setData({ show:  true   })
       that.videoCtx.pause()
     }
   },

视屏播到一半一缓冲就开始黑屏



网友回复

娇华:

你好,问题未复现。请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付