视屏播到一半卡死黑屏怎样解决 有人说加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)。