autoplay="true"
webkit-playsinline="true"
x5-video-player-type="h5"
@ended="videoEnd"
style="width: 100%"></video>
data() {
return {
src: '',
videoUrl: ''
}
},
onLoad(e) {
this.videoUrl = e.url
},
methods: {
videoEnd(e) {
this.videoContext = uni.createVideoContext('myVideo')
this.videoContext.stop()
}
}