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.
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.
You have to combine those answers:
set
features: [],
insert this in your css:
.mejs-container .mejs-controls {
display: none !important;
}
Important
When you do this, you can't pause the video by clicking on it.
when you set up the MediaElement options you can set features:
to remove everything just set it to an empty array
...
features: ['playpause','progress','current','duration','tracks','volume','fullscreen'],
...
becomes
...
features: [],
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With