HTML onratechange Attribute
Example
<video onratechange="myFunction()">
Meaning
The ratechange event run when the playing speed of the audio/video is changed.
Standard Syntax
<element onratechange="script">
Applies to:
The onratechange attribute can be used on the following element:
| Element | Attribute |
|---|---|
| <audio> | ratechange |
| <video> | ratechange |
Advertisement
Attribute Values
| Value | Description |
|---|---|
| script | Specifies a script that run when the media ratechanged. |