Hacker News new | past | comments | ask | show | jobs | submit login

You don't need JavaScript to autoplay video or audio on a webpage:

  <video src="url" autoplay>

  <audio src="url" autoplay>



[deleted]


The syntax in the comment you replied to works fine: just include a video tag that references the video file by URL.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: