视屏播到一半卡死黑屏怎样解决 有人说加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() } },
视屏播到一半一缓冲就开始黑屏
微信小程序开发相关问题解答;本文来自微信小程序工厂 http://www.xcxgc.com 转载请保留。
本文网址:http://www.91bianli.com/kaifazhinan/66655.html