Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 771
user1034552 Avatar asked Nov 07 '11 21:11

user1034552


3 Answers

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.

like image 100
Camilo Hoyos Avatar answered Oct 20 '22 08:10

Camilo Hoyos


You have to combine those answers:

  1. set

    features: [],
    
  2. 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.

like image 8
Robert Avatar answered Oct 20 '22 09:10

Robert


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: [],
...
like image 4
dubvfan87 Avatar answered Oct 20 '22 10:10

dubvfan87