video组件播放横屏资源页面样式显示异常
ios上播放横屏资源无法全屏,并且样式显示异常,只能设置为
{direction:0}样式才正常,但横屏资源无法全屏
代码如下
<view >
<video id=‘myVideo’ src="{{url}}" autoplay controls show-fullscreen-btn=‘false’ class=‘video’ bindfullscreenchange=‘fullscreenchange’ bindwaiting=‘playWait’ binderror=‘playError’></video>
</view>
onReady: function () {
this.videoContext = wx.createVideoContext(‘myVideo’)
this.videoContext.requestFullScreen({ direction: 90 })
}
这个direction不设置和设置90横屏资源竖屏资源展示都有问题,设置为0则横屏达不到全屏放大效果
想要实现一进页面展示如下效果
3 回复