Easy Tutorial
❮ Met Element Setattributenode Prop Optgroup Label ❯

Video defaultPlaybackRate Property

Video Object

Example

Set the video to play at a default slow speed:

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

Definition and Usage

The defaultPlaybackRate property sets or returns the default playback speed of the audio/video.

Setting this property only changes the default playback speed, not the current one. To change the current playback speed, use the playbackRate property.


Browser Support

Currently, all browsers support the defaultPlaybackRate property except Safari.

Note: Internet Explorer 8 and earlier versions do not support the defaultPlaybackRate property.


Syntax

Return the defaultPlaybackRate property:

Set the defaultPlaybackRate property:

Property Values

Value Description
playbackspeed Indicates the default playback speed of the audio/video. Example values: <br> 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: Numeric value, indicating the default playback speed
Default Value: 1.0
--- ---

More Examples

Example

Set the video to play at a default fast speed:

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

❮ Met Element Setattributenode Prop Optgroup Label ❯