Video playbackRate attribute
Definition and usage
PlaybackRate
Sets or returns the current playback speed of the video.
Example
Example 1
Set the video to slow motion playback:
document.getElementById("myVideo").playbackRate = 0.5;
Example 2
Set the video to fast playback:
document.getElementById("myVideo").playbackRate = 5;
Syntax
Return the playbackRate attribute:
videoObject.playbackRate
Set the playbackRate attribute:
videoObject.playbackRate = playbackspeed
Attribute Value
Value | Description |
---|---|
playbackspeed |
Specifies the current playback speed of the video. Example Value:
|
Technical Details
Return Value: | A number representing the current playback speed. |
---|---|
Default Value: | 1.0 |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 9.0 | Support | Support | Support |