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里面写的没有设置样式  

相关文章:

  • 2023-03-27
  • 2022-12-23
  • 2022-01-19
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-12-23
  • 2021-10-18
  • 2021-11-20
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案