video设置倍速 this.videoContext.playbackRate()
<view class=""> <button @tap="bindButtonRate" data-rate='1'>倍速1</button> <button @tap="bindButtonRate" data-rate='1.5'>倍速1.5</button> <button @tap="bindButtonRate" data-rate='2'>倍速2</button> </view>
bindButtonRate (e) { // 设置倍速播放 let rate = e.currentTarget.dataset.rate this.videoContext.playbackRate(Number(rate)) },
简单的几行代码就可实现 我是在uniapp里面写的没有设置样式