How to slow down a video in javascript?


Hi, is it possible to slow down a video in javascript? If so, how? Tell me please.

Author: Qwertiy, 2018-03-24

2 answers

Here is the code:

document.querySelector('video').playbackRate = 3.0;

The value 3.0 means that the video is accelerated by 3 times. By default, the video is played at normal speed, i.e. 1.0. To slow down the video by half 0.5

 4
Author: Ruslan Melnychenko, 2018-03-24 17:34:33

There is a framework, in the functionality of which, among other things, there is a control of the playback speed. Video.js

 1
Author: Areshka, 2018-03-24 17:19:56