HTML Audio/Video DOMdefaultPlaybackRateProperty

HTML Audio/Video DOM Reference Manual

Example

Set video to default slow playback:

myVid=document.getElementById("video1");
myVid.defaultPlaybackRate=0.5;

Try it Yourself »

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, useplaybackRateProperty.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Only Internet Explorer 10, Firefox and Chrome support the defaultPlaybackRate property.

Note:Safari, Opera, and Internet Explorer 9 and earlier versions do not support the defaultPlaybackRate property.


Syntax

Set the defaultPlaybackRate property:

audio|video.defaultPlaybackRate=playbackspeed

Return the defaultPlaybackRate property:

audio|video.defaultPlaybackRate

Property value

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


HTML Audio/Video DOM Reference Manualother extensions