ratechange
Overview Table
Synchronous | No |
---|---|
Bubbles | No |
Target | dom/Element |
Cancelable | No |
Default action |
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
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.8.9.12
Event handler parameters
- pEvtObj [in]
- Type: ****IHTMLEventObj****
See also
Related pages
- audioApiaudioApi
- audioElementaudioElement
- DocumentDocument
- sourcesource
- videoElementvideoElement
- videoApivideoApi
- WindowWindow
- playbackRateplaybackRate
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]