YouTip LogoYouTip

Prop Audio Defaultplaybackrate

# Audio defaultPlaybackRate Property [![Image 8: Audio Object Reference](#) Audio Object](#) ## Example Set the audio to play at a slow speed by default: ```javascript document.getElementById("myAudio").defaultPlaybackRate = 0.5; [Try it Yourself Β»](#) * * * ## Definition and Usage The `defaultPlaybackRate` property sets or returns the default playback speed of the audio. Setting this property only changes the default playback speed, not the current one. To change the current playback speed, use the (#) property. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The `defaultPlaybackRate` property is supported in all major browsers, except Safari. **Note:** Internet Explorer 8 and earlier versions do not support the `defaultPlaybackRate` property. * * * ## Syntax Get the `defaultPlaybackRate` property: ```javascript _audioObject_.defaultPlaybackRate Set the `defaultPlaybackRate` property: ```javascript _audioObject_.defaultPlaybackRate=_number_ ## Property Values | 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 Backwards, normal speed * -0.5 Backwards, half speed | ## Technical Details | Return Value: | A number value, the default playback speed | | --- | | Default Value: | 1.0 | * * * ## More Examples ## Example Set the audio to play fast by default: ```javascript document.getElementById("myAudio").defaultPlaybackRate = 2; [Try it Yourself Β»](#) * * Audio Object](#)
← Prop Audio DurationProp Audio Defaultmuted β†’