同问
live-player 绑定 bindtouchmove事件无效在live-player中添加bindtouchmove属性(手指触摸后移动)。在虚拟机上可以触发这个事件,但是在真机上这个属性就没了 [图片] [图片] 文档上也没说live-player不让用手势事件啊,求解!!!!!
2018-07-23兄弟,你组件用错了吧,live-player的组件调用video的方法
requestFullScreen不能全屏<live-player id="myLive" src="{{url}}" mode="RTC" autoplay bindstatechange="statechange" binderror="error" style="width:100%;"> <cover-view class="controls"> <cover-image class="img" src="/images/fullscreen.png" bindtap="fullscreen" /> </cover-view> </live-player> onReady: function () { this.videoCtx = wx.createVideoContext('myLive') }, fullscreen: function () { console.log(this.videoCtx) console.log(this.videoCtx.__proto__) this.videoCtx.__proto__.requestFullScreen({ direction: 90, }) console.log("进入全屏") }, [图片]
2018-07-23