HTML Audio/Video DOM playbackRate Attribute

Example

Set the video to play at a slow speed:

myVid=document.getElementById("video1");
myVid.playbackRate=0.5;

Try It Yourself

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:

  • 1.0 Normal Speed
  • 0.5 Half Speed (Slower)
  • 2.0 Double Speed (Faster)
  • -1.0 Backward, Normal Speed
  • -0.5 Backward, Half Speed