uniapp在ios端播放视频时,选择全屏播放,视频出现放大、缩小反复跳转的bug解决
<video :src="videoList[0]" controls class="video-size" id="myVideo" show-fullscreen-btn="true" show-progress="true" :autoplay="autoPlay" controls @timeupdate="video_time_update" @fullscreenchange="fullScreenHandler"> </video> //ios端直接返回,因为ios会默认调起全屏方法和uniapp的会冲突 fullScreenHandler(e) { if (uni.getSystemInfoSync().platform == "ios") { return } },
开源中国博客地址:https://my.oschina.net/u/2998098/blog/1540520