What exactly changes when setting the attribute of video playback speed from 1 to 2 and from 1 to 0.5 in JavaScript?

I tried to find information about this, but could not find an adequate answer.

I did a study in which I changed the video playback speed using the JavaScript attribute playbackRatefor .5and 2, out of the natural playback speed.

I would like to know how Javascript changes the video playback speed.

For example, when the playback speed changes to 2, does this cause the frames to be deleted from the video?

What happens when playback speed slows down to .5? Will frames be added in this case? How are frames added? How is audio stretched / cropped?

+4
source share
2 answers

Implementation-specific behavior

The behavior of the video tag in html5 depends on the user's browser, as well as on their OS and / or on the device used to watch the video.

Different browsers use different audio / video codecs to decode audio / video data. Here is a list of video formats and codecs in different browsers (and platforms):

https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats

, , (IE Firefox Chrome Safari vs Opera), . (, iOS H.264). .

, ( ) . "JavaScript, ", .

, : " , ?" " , ?"

, . ( ), , . I, P B. , , , P B I-.

, , , . , , , . , ​​ .

. , , , , . , , , , . , 2, 4, 6, 8 , .

, Firefox 2014 Firefox:

http://blog.pearce.org.nz/2014/12/firefox-video-playbacks-skip-to-next.html

, Firefox , , , . " ", , .

, , . , , .

-

, , - , - . , , . , . , , , , , .

vs

, , , , . - . ( ), , / .

+6

, . 1 .

.5 /2 .

5 * 5 , 5 .

http://www.w3schools.com/jsref/prop_video_playbackrate.asp

playbackspeed . :

1.0 is normal speed
0.5 is half speed (slower)
2.0 is double speed (faster)
-1.0 is backwards, normal speed
-0.5 is backwards, half speed
0

All Articles