Amy-world

html5播放器

主要标志是<video>,这种是最方便实现加速的,因为原生支持.
主要依靠这两个属性:

defaultPlaybackRate* (float): The playback speed at which the video should be played
playbackRate* (float): The current playback speed: 1.0 is normal, 2.0 is two times faster forward, -3.0 is three times faster backwards and so on

可以自己在console中修改实现

/* play video twice as fast */
document.querySelector(\'video\').defaultPlaybackRate = 2.0; //默认两倍速播放
document.querySelector(\'video\').play();

/* now play three times as fast just for the heck of it */
document.querySelector(\'video\').playbackRate = 3.0; //修改此值设置当前的播放倍数

 测试firefox、chrome可以使用

来源

转自fairjm

分类:

技术点:

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2021-04-24
  • 2021-12-23
  • 2021-10-01
  • 2021-11-20
  • 2021-10-07
猜你喜欢
  • 2021-11-15
  • 2021-10-17
  • 2021-07-04
  • 2021-09-08
  • 2021-12-02
相关资源
相似解决方案