Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mediaelementjs player's button disappeared?

mediaelementjs player was working okay on my wordpress (P2 theme) and then I upgraded the theme, the player still works but all the buttons have disappeared.

I uploaded and reverted back to the original theme, the problems remains. I have no clue why the buttons are not showing up anymore ? Please help.

like image 328
user874036 Avatar asked Mar 17 '26 19:03

user874036


1 Answers

I had this same issue and it turned out to be a lack of MIME support in my Apache configuration. The control button images for mediaelementjs are SVG files, and not all Apache installations have a mime definition for that filetype.

Solution on my server was to edit /etc/mime.types and add the line:

image/svg+xml svg svgz

Then I restarted Apache and everything worked fine. Hope that helps!

like image 74
Murphy's Prophet Avatar answered Mar 26 '26 15:03

Murphy's Prophet