Render Flow - Media formats overview
Read <video>
→Create VIDEO node
Read <audio>
→Create AUDIO node
The browser reads media tags, creates nodes, loads the media file, decodes the format, then renders video frames or plays audio.
<video controls width="320"> with one <source> element[Empty page]
[Video player box 320px wide] [Play button] [Progress bar] [Black screen area for video]
<video controls width="320"> <source src="movie.mp4" type="video/mp4"> <source src="movie.webm" type="video/webm"> Your browser does not support the video tag. </video> <audio controls> <source src="sound.ogg" type="audio/ogg"> <source src="sound.mp3" type="audio/mpeg"> Your browser does not support the audio element. </audio>
| Media Format | Type | Common Use | Browser Support | Notes |
|---|---|---|---|---|
| MP4 (H.264) | Video | Most devices and browsers | Very high | Widely supported, good quality/compression |
| WebM | Video | Open web format | High | Good for modern browsers, open source |
| OGG | Audio | Open audio format | High | Used for audio, open and royalty-free |
| MP3 | Audio | Audio playback | Very high | Most devices support it, lossy compression |