HTML Audio/Video DOMplaybackRateProperty
HTML Audio/Video DOM Reference Manual
Example
Set the video to play at slow speed:
myVid=document.getElementById("video1");
myVid.playbackRate=0.5;
myVid.playbackRate=0.5;
Try it Yourself »
Definition and Usage
The playbackRate property sets or returns the current playback speed of the audio/video.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the playbackRate property.
Note:Internet Explorer 9 and earlier versions do not support the playbackRate property.
Syntax
Set the playbackRate property:
audio|video.playbackRate=playbackspeed
Return the playbackRate property:
audio|video.playbackRate
Property value
| Value | Description |
|---|---|
| playbackspeed | Indicates the current playback speed of the audio/video. Example values:
|
Technical Details
| Return value: | Numeric value, current playback speed |
|---|---|
| Default value: | 1.0 |
HTML Audio/Video DOM Reference Manualother extensions