Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Video playbackRate Property

Video playbackRate property

Video Object Reference The Video object

Example

Set the video to play at slow speed:

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

Try it »


Definition and Usage

The playbackRate property sets or returns the current playback speed of the video.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the playbackRate property

Note: Internet Explorer 9 and earlier IE versions do not support the playbackRate property.


Syntax

Return the playbackRate attribute:

videoObject

.playbackRate

Set the playbackRate attribute:

videoObject

.playbackRate=

playbackspeed

Attribute values

Value Description
playbackspeed

Indicates the current playback speed of the video.

Example values:

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

    Technical Details

    Return Value: A number representing the current playback speed of the video
    Default value: 1.0

    More examples

    Example

    Set the video to play fast:

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

    Try it »


    Video Object Reference The Video object