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.
उदाहरण
सिंटैक्स
speed()
speed(speed)
पैरामीटर्स
speed
Number:
speed multiplier for playback.
Returns
Number: current playback speed.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!