Other Video Features

play_circle_filled Video Playback Attributes

autorenew

autoplay

Starts playing automatically when page loads

loop

loop

Restarts video when it reaches the end

volume_off

muted

Mutes the audio by default

download

preload

Hints how much video data to preload

warning Browser Restrictions

Modern browsers often block autoplay with sound. Use muted attribute with autoplay for better compatibility.

code Code Examples

<video src="video.mp4" autoplay muted>
  Your browser doesn't support HTML5 video.
</video>
<video src="video.mp4" loop>
  Your browser doesn't support HTML5 video.
</video>
<video src="video.mp4" preload="metadata">
  Your browser doesn't support HTML5 video.
</video>

settings Preload Attribute Values

auto: Downloads entire video
metadata: Loads only video metadata
none: Doesn't preload any data
lightbulb Best Practice

Use preload="metadata" for most cases to balance performance and user experience