uniapp中和小程序中video视频的播放和暂停

1.HTML中

2.在mounted中或者Created中

mounted() {
			this.videoContext = uni.createVideoContext('myVideo');//创建视频实例指向video
		},

3.

this.videoContext.play();  播放
this.videoContext.pause(); 暂停

 

你可能感兴趣的:(vue,uni-app,小程序)