横屏下小程序Video调用全屏接口错位
发布于 5 年前 作者 qiang49 11588 次浏览 来自 问答

wxml:

<video id=“myVideo” src="{{src}}"></video>

js:

onLoad: function (options) {

    this.setData({

    src: getApp().globalData.video,

    })

},

onShow: function () {

    this.videoContext = wx.createVideoContext(‘myVideo’)

    // this.videoContext.play();

    this.videoContext.requestFullScreen()

},

出现如下情况:

direction 90 -90 都设置过了、

不知道客户怎么把小程序横屏的,我自己这边死活横屏不来(屏幕锁定已关)。

回到顶部