Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Video and Audio Media Basics The Video Element

Autoplay not working

As the title describes

2 Answers

you must include the 'muted' attribute alongside with 'autoplay', as some browsers will ignore 'autoplay' alone.

Taison Fragao
Taison Fragao
3,061 Points

Thanks mk37, it worked with muted attribute.

muted attribute also worked for me! Thanks!

in the HTML, Nick changes "controls" to "autoplay" ... if you just leave controls, it will automatically get the boolean value "true" assigned and the controls will appear, but if you change it to "Autoplay" ... as soon as you hit the site, the player will start the clip ... hope that helped ... regards, Jan.