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(“进入全屏”)
},