Video playbackRate property
Example
Set the video to play at slow speed:
document.getElementById("myVideo").playbackRate = 0.5;
Try it »
Definition and Usage
The playbackRate property sets or returns the current playback speed of the video.
Browser support





All major browsers support the playbackRate property
Note: Internet Explorer 9 and earlier IE versions do not support the playbackRate property.
Syntax
Return the playbackRate attribute:
videoObject
.playbackRate
Set the playbackRate attribute:
videoObject
.playbackRate=
playbackspeed
Attribute values
| Value | Description |
|---|---|
| playbackspeed |
Indicates the current playback speed of the video. Example values: |
Technical Details
| Return Value: | A number representing the current playback speed of the video |
|---|---|
| Default value: | 1.0 |
More examples
Example
Set the video to play fast:
document.getElementById("myVideo").playbackRate = 5;
Try it »
The Video object