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

CSS

Modern browsers will also block auto play audio. Can I include code to prevent that?

Modern browsers will also block auto play audio. Can I include code to prevent that? I know it doesn't produce the best browsing experience for viewers to have sound play automatically when visiting a site.. but I guess I would just like to see if there's a hack for that.

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Data Analysis Techdegree Graduate 45,972 Points

Hey Heather Wood :wave:

I'm not sure exactly what it is you're using / creating as this is just in the CSS topic and not attached to a specific video but this page may hold the answer :smiley:

Thanks Travis! In the CSS tutorial, I saw code to normalize the default browser settings if they set the player controls to hide. It just reminded me of a video header I embedded with html that I wanted the sound to play on autoplay. My code was good but no browsers would allow it to play. I didn't know if there was a way to "normalize" that lol Thank you for your info, I'll definitely check it out! 🙌