1. Home
  2. Html
  3. Auto play video

Use this code to autoplay embedded video. Modern browsers will only autoplay muted videos. The 'playsinline' property is required for Safari iOS if you don't want it to play in the fullscreen overlay.

<video autoplay="autoplay" playsinline muted loop poster="/path/to/poster.jpg">
    <source src="/path/to/video.mp4" type="video/mp4">
    <source src="/path/to/video.webm" type="video/webm">
Full Html cheatsheet