############WXML
<live-player
class="video"
id="player_0"
:src="rtmpurl"
mode="live"
autoplay
>
</live-player>
<button bindtap='fullScreen'>full</button>
##############JS
fullScreen() {
let ctx = wx.createLivePlayerContext('player_0')
ctx.requestFullScreen({
direction: 90,
success() {
console.log('full success')
},
fail() {
console.log('full fail')
}
})
}
真机调试下,调用了全屏API完全没有反应,成功和失败回调都没有走
https://developers.weixin.qq.com/s/Y5ywE0mD7EFT
live-player组件的全屏方法在安卓的真机上不调用,麻烦看一下