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

did not understand how we are assigning these classes to video elements.

I was looking at the old chats... but still dont get how we are defining classes without assigning them to any html element. How are we doing it in css file?

Steven Parker
Steven Parker
229,732 Points

Did you have any specific class(es) you were wondering about? Any specific points in the video?

4 Answers

Steven Parker
Steven Parker
229,732 Points

OK, so let's take mejs-treehouse as an example:

Between time index 1:42 and 2:03 in the video, you can see the class mejs-treehouse being assigned to two of the HTML elements.

Then at 2:32 you can see that same class being defined in the CSS.

Taylor Espejo
Taylor Espejo
3,939 Points

as for mejs-controls I do believe from memory that is simply a boolean attribute attached. So its presence is default true.

^ I believe that can be seen around the same time as Steven had mentioned

Ya .: the class mejs-treehouse and mejs-controls or any other classes we are using with this CSS file

Thanks Steven and Taylor . I get how he is using the classes mentioned above but what about the rest like .mejs-time-float, mejs-time-total, mejs-time-buffering... Also in the link given in the teacher's notes , the link, mediaelement.js does not show the options tab that he opened to show us the documentation like features:

Steven Parker
Steven Parker
229,732 Points

I may not quite understand your original question about "...defining classes without assigning them to any html element".

Can you give me specific time references into the video where the things you are puzzled about happen?