Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.