This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

ratechange

Overview Table

Synchronous No
Bubbles No
Target dom/Element
Cancelable No
Default action
## Examples

The following example implements buttons that change the playback rate of a video element (v1) by a factor of 0.2. The Resume button sets the playback rate back to 1 (100 percent).

<button onclick="document.getElementById('v1').playbackRate += 0.2">Speed Up</button>
<button onclick="document.getElementById('v1').playbackRate -= 0.2">Slow Down</button>
<button onclick="document.getElementById('v1').playbackRate = 1">Resume</button>

Notes

Remarks

This event is raised when the value of playbackRate changes. The playback rate can be increased to a maximum of 2 (200 percent), or decreased to 0. To invoke this event, do one of the following:

  • Increase or decrease the value of playbackRate.

Syntax

Standards information

Event handler parameters

pEvtObj [in]
Type: ****IHTMLEventObj****

See also

Related pages

Attributions