HTML onloadedmetadata Attribute: The HTML onloadedmetadata attribute can be defined as an event occurs when metadata for the specified audio/video has been loaded. Metadata for audio/video consists of duration, dimensions (video only) and text tracks.
During the loading process of an audio/video, the following events occur, in this order:
- loadstart
- durationchange
- loadedmetadata
- loadeddata
- progress
- canplay
- canplaythrough
HTML onloadedmetadata Attribute
This attribute is applied on <audio> and <video> elements.
Syntax: <audio onloadedmetadata=”script”>
Browser Support:
This attribute is supported by the following browsers:
- Chrome
- Firefox
- Internet Explorer-9.0
- Opera
- Safari