Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 855 Bytes

The playbackRate property is available to you on the [[audio]] or [[video]] elements via JavaScript.

This property contains the playback rate of the selected media element. You can access it at any time during playback, or when it is paused. Changing the value of this property to a different number, will cause the media to play that many times faster or slower the next time the media is playing. If the media is already playing, then changing this property will take immediate effect on the next time update. This property is only available after the video is loaded with the load method.

document
  .querySelector('audioOrVideoSelector')
  .playbackRate // returns the current playback rate

  document
    .querySelector('audioOrVideoSelector')
    .playbackRate = 15 // make the media play 15 times faster than normal