html部分
<video :src="$util.img(url)" id="myVideo" :loop="false" :autoplay="true" :controls="true"></video>
js部分
onReady: function(res) {
this.videoContext = uni.createVideoContext('myVideo');
this.videoContext.requestFullScreen();
}
备注:重点在于js部分
网友评论