网页视频不能加速播放设置

网页视频不能加速播放

视频右键检查点击控制台,命令行输入代码 document.querySelector("video").playbackRate="2"

这行代码的作用是将指定的`<video>`元素的播放速度设置为 2 倍速。 通过`document.querySelector("video")`获取页面上的第一个`<video>`元素,然后将其`playbackRate`属性设置为 2,从而改变视频的播放速度。

猜你喜欢

转载自blog.csdn.net/weixin_45965192/article/details/134953973