HTML Audio/Video DOM Reference
Alert when meta data for the video is loaded:
The loadedmetadata event occurs when meta data for the specified audio/video has been loaded.
Meta data 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:
![]()
The loadedmetadata event is supported in all major browsers.
Note: This property is not supported in Internet Explorer 8 and earlier.
In HTML:
In JavaScript:
Using addEventListener():
| Supported HTML tags: | <audio>, <video> |
|---|---|
| Supported JavaScript objects: | Audio, Video |
Use the onloadedmetadata attribute on an HTML element
Use addEventListener() to listen for the loadedmetadata event
HTML Audio/Video DOM Reference
Your message has been sent to W3Schools.