Latest web development tutorials

HTML Audio / Video DOM defaultPlaybackRate property

HTML audio / video Tag Reference HTML Audio / Video DOM Reference

Examples

The video is set to the default low speed playback:

myVid=document.getElementById("video1");
myVid.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

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

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


grammar

Setting defaultPlaybackRate properties:

audio|video .defaultPlaybackRate= playbackspeed

Back defaultPlaybackRate properties:

audio|video .defaultPlaybackRate

Property Value

描述
playbackspeed 指示音频/视频的默认播放速度。
例值:
  • 1.0 正常速度
  • 0.5 半速(更慢)
  • 2.0 倍速(更快)
  • -1.0 向后,正常速度
  • -0.5 向后,半速

technical details

返回值: 数字值,默认的播放速度
默认值: 1.0


HTML audio / video Tag Reference HTML Audio / Video DOM Reference