HTML Audio/Video DOM playbackRate Attribute
Example
Set the video to play at a slow speed:
myVid=document.getElementById("video1"); myVid.playbackRate=0.5;
Definition and Usage
The playbackRate attribute sets or returns the current playback speed of audio/video.
Browser Support
Only Google Chrome and Safari support the playbackRate attribute.
Syntax
Set playbackRate Attribute:
audio|video.playbackRate=playbackspeed
Return playbackRate Attribute:
audio|video.playbackRate
Attribute Value
Value | Description |
---|---|
playbackspeed |
Indicates the current playback speed of audio/video. Example Value:
|