Video playbackRate attribute

Definition and usage

PlaybackRate Sets or returns the current playback speed of the video.

Example

Example 1

Set the video to slow motion playback:

document.getElementById("myVideo").playbackRate = 0.5;

Try it yourself

Example 2

Set the video to fast playback:

document.getElementById("myVideo").playbackRate = 5;

Try it yourself

Syntax

Return the playbackRate attribute:

videoObject.playbackRate

Set the playbackRate attribute:

videoObject.playbackRate = playbackspeed

Attribute Value

Value Description
playbackspeed

Specifies the current playback speed of the video.

Example Value:

  • 1.0 is normal speed
  • 0.5 is half speed (slower)
  • 2.0 is double speed (faster)
  • -1.0 is backward, normal speed
  • -0.5 is backward, half speed

Technical Details

Return Value: A number representing the current playback speed.
Default Value: 1.0

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support 9.0 Support Support Support