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 trialArianna Saoirse
10,078 PointsReplacing Audio and Video controls with "mejs__player" breaks my code in Create a Media Player with MediaElement.js.
I am following the workshop called "Create a Media Player with MediaElement.js". Everything is fine and I understand all the steps, however in the second lesson, "Adding MediaElement.js", when I replace the Audio and Video controls with 'class="mejs__player" ' as directed, it breaks my code. I have searched the contained css, and do not see this class listed anywhere. Is this an error, or am I doing something wrong?
My code https://w.trhou.se/dlbqaem624
1 Answer
Brian Jensen
Treehouse StaffHiya Arianna Saoirse!
It looks like the issue is being caused by line 12 in your index.html file. Currently you're using the src
attribute to link the mediaelementplayer.css stylesheet. You just need to change it from src
to href
.
Arianna Saoirse
10,078 PointsArianna Saoirse
10,078 PointsBumping this question as I've had no response. I simply skipped it and went to the next video, but it would be nice to know where the mistake is. Thanks!