核心js代码:
var videoContext = wx.createVideoContext('myvideo', this);
videoContext.requestFullScreen();
this.setData({
fullScreen: true
})
核心wxml代码:
<view class="video-container">
<button bindtap='play' >播放</button>
<video id='myvideo' class='{{fullScreen?"show":"hide"}}' src="/video/movie.mp4" autoplay="true" bindfullscreenchange="fullScreen" bindended="closeVideo" ></video>
</view>
后返回上一页,原先可以正常显示ar画面,现在静止。如下三图。第一张是ar下扫描图片正常显示模型,第二张全屏显示视频,第三张是返回ar但画面静止了。