Latest web development tutorials

HTML DOM Video defaultPlaybackRate property

Video Object Reference Video Object

Examples

The video is set to the default low speed playback:

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

try it"

Definition and Usage

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

Setting this property will only change the default playback speed, instead of the current. To change the current playback speed, please use playbackRate property.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

With the exception of Safari browser, other browsers support defaultPlaybackRate property.

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


grammar

Back defaultPlaybackRate properties:

videoObject .defaultPlaybackRate

Setting defaultPlaybackRate properties:

videoObject .defaultPlaybackRate = number

Property Value

value description
playbackspeed

Instruct the audio / video default playback speed.

Example value:

  • 1.0 normal speed
  • 0.5 at half speed (slower)
  • 2.0 speed (faster)
  • -1.0 Backwards at normal speed
  • -0.5 Backward, half speed

technical details

return value: ,, Digital value represents the default playback speed
Defaults: 1.0


More examples

Examples

The default setting for quick video playback:

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

try it"


Video Object Reference Video Object