Video playbackRate Property
Example
Set a video to play in slow motion:
document.getElementById("myVideo").playbackRate = 0.5;
Try it Yourself »
Description
The playbackRate property sets or returns the current playback speed of the video.
Browser Support
Property | |||||
---|---|---|---|---|---|
playbackRate | Yes | 9.0 | Yes | Yes | Yes |
Syntax
Return the playbackRate property:
videoObject.playbackRate
Set the playbackRate property:
videoObject.playbackRate = playbackspeed
Property 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 |
---|---|
Default Value: | 1.0 |
More Examples
Example
Set a video to play fast:
document.getElementById("myVideo").playbackRate = 5;
Try it Yourself »
❮ Video Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.