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 Polishing a Custom Skin

Sam Parkash
Sam Parkash
6,645 Points

Mejs? Just a little confused on the concept.

Hi, Could someone please explain to me why we keep saying mejs over and over again for example we say...

.mejs-treehouse .mejs-controls .mejs-time-rail .mejs-total .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-loaded- .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-buffering- .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-handel. ?

Thanks.

1 Answer

Arturo Alviar
Arturo Alviar
15,739 Points

Hi Sam, In this course, we are using a plugin called MediaElement.js (mejs). This plugin has its own css file where it declares classes that start with the word mejs for the sake of organization. For example, the mejs-wmp class styles the video player to look like a windows media player window.

The class name mejs-treehouse is not part of the plugin. It is a custom skin we build. Notice however that it follows the naming pattern that MediaElement.js has in order to distinguish that class as a class that relates to the plugin.

Hope this made sense.