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

General Discussion

Option to hide/show controls in video player ?

Is there's any option to show/hide controls in video player, It comes sometimes between the work and hides some part of screen ?

5 Answers

Sreng Hong
Sreng Hong
15,083 Points

There are no option to hide. You can hide it by not hovering your cursor (mouse) on the video screen, so it will be disappear. Hope this help.

No! It doesn't disappear even.

It happens to me as well, that the controls stay on the screen even if I don’t hover on it. I’ve come to notice that refreshing my browser helps.

I use Safari I don’t know if that is the case. Perhaps I should move to Chrome for good.

What browser you use?

I am using Google chrome.

Ideally controls should be hidden and should come up on hover, but it does't act like this.

I solved it in Chrome using an extension called Stylebot, to activate the User Applied to pages then I made a rule like this,

.mejs-container .mejs-controls {
    background: rgba(56,64,71,0.98);
    bottom: 0px;
    right: 30px;
    width: auto;
    height: 40px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: rgba(0,0,0,0.1) 0 0 0 1px inset,rgba(0,0,0,0.1) 0 0 5px 5px;
    -moz-box-shadow: rgba(0,0,0,0.1) 0 0 0 1px inset,rgba(0,0,0,0.1) 0 0 5px 5px;
    box-shadow: rgba(0,0,0,0.1) 0 0 0 1px inset,rgba(0,0,0,0.1) 0 0 5px 5px;
    opacity: 0.4;
}

Nice .. :D Atleast solves the problem for a while