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 Adding MediaElement.js

Replacing 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

Bumping 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!

1 Answer

Brian Jensen
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Brian Jensen
Treehouse Staff

Hiya 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.