Easy Tutorial
❮ Prop Style Textdecorationline Prop Audio Autoplay ❯

Video playbackRate Property

Video Object

Example

Set the video to play in slow motion:

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

Definition and Usage

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


Browser Support

All major browsers support the playbackRate property.

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


Syntax

Return the playbackRate property:

Set the playbackRate property:

Property Values

Value Description
playbackspeed Indicates the current playback speed of the video. Example values: 1.0 normal speed<br> 0.5 half speed (slower)<br> 2.0 double speed (faster)<br> -1.0 backward, normal speed<br> -0.5 backward, half speed

Technical Details

Return Value: 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;

❮ Prop Style Textdecorationline Prop Audio Autoplay ❯