<video class="testvideo" id="myVideo" @timeupdate="timeupdate" ref="video" ></video>
<view @tap="setRate(2.0)" id="select" class="speed">2.0倍</view>
return里>>>videoContext:''
created() {
this.videoContext = uni.createVideoContext('myVideo',this)}
setRate(value) {
this.videoContext.playbackRate(value);
console.log('2倍速')
},
这样么? this.videoContext.src=this.innerAudioContext.src