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 (Retired) Custom Media Players Adding MediaElement.js

Kartik Kapoor
Kartik Kapoor
3,016 Points

No control buttons being displayed in the media player.

The controls were there before I added mejs but now there are no controls.I can just see the skin and the video plays when I click on the area where the play button is supposed to be but it isn't visible. Any idea why this is happening?

Could you include the code?

Ali Amirazizi
Ali Amirazizi
16,087 Points

Did you add/remove the controls attribute inside the video tag? It should look similar to this:

<video width="320" height="240" controls>
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
</video>

1 Answer

Mark Glissmann
Mark Glissmann
7,225 Points

You didn't add the 'controls' attribute to the opening video tag.