Video defaultPlaybackRateProperty
Example
Set the video to default slow playback:
document.getElementById("myVideo").defaultPlaybackRate = 0.5;
Try it Yourself »
Definition and Usage
The defaultPlaybackRate property sets or returns the default playback speed of audio/video.
Setting this property only changes the default playback speed, not the current one. To change the current playback speed, use theplaybackRateproperty.
Browser Support
![]()
![]()
![]()
![]()
![]()
Currently, all browsers except Safari support the defaultPlaybackRate property.
Note:Internet Explorer 8 and earlier IE versions do not support the defaultPlaybackRate property.
Syntax
Return the defaultPlaybackRate property:
videoObject.defaultPlaybackRate
Set the defaultPlaybackRate property:
videoObject.defaultPlaybackRate=number
Property Values
| Value | Description |
|---|---|
| playbackspeed |
Indicates the default playback speed of audio/video. Example values:
|
Technical Details
| Return Value: | A numeric value, representing the default playback speed |
|---|---|
| Default value: | 1.0 |
More Examples
Example
Set the video to default fast playback:
document.getElementById("myVideo").defaultPlaybackRate =
5;
Try it Yourself »
Video Object Other Extensions