mangajin
mangajin

Reputation: 21

How to hide the control in the player using mediaelementjs.com

I would like to only show the control bar when user hover the mouse over the video using mediaelementjs.com player. I think there should be some function written already. But I can't find anywhere. Otherwise, should i just do simple show-hide in javascript?

Thanks

Upvotes: 1

Views: 3447

Answers (1)

Tinez
Tinez

Reputation: 31

I had the same problem, I added the visibility: hidden property on the following existing CSS selector:

.mejs-container .mejs-controls { visibility:hidden; } 

It seems to work well. The controls now appear hovering the video, and not on page load.

Upvotes: 3

Related Questions