Reference speed()

speed()

Sets the audio/video playback speed.

The parameter, val, is optional. It's a number that sets the playback speed. 1 plays the media at normal speed, 0.5 plays it at half speed, 2 plays it at double speed, and so on. -1 plays the media at normal speed in reverse.

Calling media.speed() returns the current speed as a number.

Note: Not all browsers support backward playback. Even if they do, playback might not be smooth.

Examples

Syntax

speed()
speed(speed)

Parameters

speed
Number:

speed multiplier for playback.

Returns

Number: current playback speed.
Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!

Related References