<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("进入全屏")
},
兄弟你的问题解决了吗 我在自定义组件里封装live-player时 调用requestFullScreen()也无法全屏
兄弟,你组件用错了吧,live-player的组件调用video的方法
补一张图
开发工具里面存在requestFullScreen()
真机测试不存在
求帮忙解答一下,万分感谢!