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 trialNick Evershed
6,429 PointsAutoplay not working
As the title describes
2 Answers
mk37
10,271 Pointsyou must include the 'muted' attribute alongside with 'autoplay', as some browsers will ignore 'autoplay' alone.
Jan Oberreiter
78,020 Pointsin 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.
Taison Fragao
3,061 PointsTaison Fragao
3,061 PointsThanks mk37, it worked with muted attribute.
Michael Newman
39,508 PointsMichael Newman
39,508 Pointsmuted attribute also worked for me! Thanks!