Mediaelement.js - Would like to Remove ALL Controls - Only Display Video

user1034552 picture user1034552 · Nov 7, 2011 · Viewed 15.1k times · Source

I am trying to replace my swf header in my webpage with mp4. I like MediaElement.js but I can't remove the controls. I don't want to hide the controls, I want to remove them completely... and just display the looping video.

Any suggestions would be greatly appreciated.

Answer

Camilo Hoyos picture Camilo Hoyos · Jan 6, 2012

I think a better solution is:

Set features property:

features: []

Insert this in your css:

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

That way you can pause-play by clicking the video.