这是IOS上的,正常显示全屏
这是安卓上的,就会翻转过来,并且缩放
实际代码如下:
let video = this.curPlatform.createVideo({
x: 0,
y: 0,
width: 300,
height: 750,
src: url,
// poster: posterUrl,
objectFit: ‘contain’,
controls: false,
autoplay: true,
showCenterPlayBtn: false,
enableProgressGesture: false
})
video.requestFullScreen()
video.onEnded(res => {
//console.log(‘播放完成’)
video.destroy()
})