具体操作:
that.playerCtx.requestFullScreen({
success: res => {
that.fullScreenFlag = true
that.$forceUpdate()
},
fail: res => {
console.log('fullscreen fail');
},
direction: 90
});
绑定设备:
this.playerCtx = uni.createLivePlayerContext('livePlayer'+id);