Easy Tutorial
❮ Prop Style Overflow Prop Style Order ❯

defaultPlaybackRate Property

Audio Object

Example

Set the audio to play at a slower default speed:


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 playbackRate property.


Browser Support

All major browsers support the defaultPlaybackRate property, except Safari.

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


Syntax

Return the defaultPlaybackRate property:

Set the defaultPlaybackRate property:

Property Values

Value Description
playbackspeed Indicates the default playback speed of the audio/video. Example values: 1.0 normal speed<br> 0.5 half speed (slower)<br> 2.0 double speed (faster)<br> -1.0 backward, normal speed<br> -0.5 backward, half speed

Technical Details

Return Value: Numeric value, the default playback speed
Default Value: 1.0
--- ---

More Examples

Example

Set the audio to play at a faster default speed:


❮ Prop Style Overflow Prop Style Order ❯