-
AuthorPosts
-
October 21, 2022 at 9:22 pm #1369771
Hi, a few days ago wordpress was update. Now, the default volume of the audio player is back to 80%. Where do I set this to 100%, because I found contradicting information? One says you have to edit the “mediaelement-and-player.js” file. Others say the “mediaelement-and-player.min.js” file. There are mentioned different locations, too. Is this the correct one: “wp-includes/js/mediaelement”?
And do you have to use a special editor (e.g. Notepad ++) to edit these files?
EDIT: Is there a way to make this change permanent, so that it isn’t set back with each WordPress update?
October 22, 2022 at 2:17 pm #1369795Hey ThomasN001,
The files mediaelement-and-player.js mediaelement-and-player.min.js are WordPress core files and will need to be edited with each WordPress update.
They are both the same file but one is minified, mediaelement-and-player.min.js, and this is the one most likely loaded by the browser, although minified files are hard to read and edit, if you found instructions to do so then try it, or you can edit the un-minified one and then minify it online
Perhaps there is a plugin that will override the default audio player settings, or perhaps there is a audio player plugin that will meet your needs better without you modifying it?Best regards,
MikeOctober 22, 2022 at 3:59 pm #1369799Editing the startVolume parameter in mediaelement-and-player.min.js didn’t work, at all. It made the audio play disappear completely. Even replacing it with the unchanged backup didn’t correct that. I had to reinstall WordPress to make the audio player reappear. Any ideas?
October 22, 2022 at 7:20 pm #1369812October 25, 2022 at 3:42 pm #1370192Hi Mike, this is what i did:
I downloaded the file mediaelement-and-player.min.js from this folder wp-includes/js/mediaelement. I edited it with Notepad++ changing the value of the parameter startVolume from .8 to 1 (I also tried 1.0), saved the file and reuploaded it to wp-includes/js/mediaelement. After that all audio players on my website were gone.
Reuploading the unchanged file didn’t reverse that and I had to reinstall WordPress.
October 25, 2022 at 5:45 pm #1370218Hi,
Are you uploading with a FTP client or with your webhost cPanel file manager?
Since you were not able to re-upload the un-edited file it sounds like your FTP client is changing the file permissions, try using the cPanel file manager.
But even if you get this to work, since you are editing a WordPress core file you will need to do this with every WP update, perhaps using an audio player plugin that offers this option will save you from this?Best regards,
MikeOctober 27, 2022 at 1:57 pm #1370455Hi Mike, I was looking into audio player plug-ins, but none was satisfactory (they’re either to big, or can’t be customized).
My web package doesn’t have a cPanel. So, what can I do to ensure that my FTP client doesn’t mess with the file permission?Btw. what’s the best way to contact WordPress support? I’d like to urge them to change the volume to 100% permanently, because technically it makes absolutely no sense whatsoever to set it lower. (When you reduce volume at the software level, you have to compensate by raisig it on the hardware level (phone, pc speakers…) which means that you raise the noise floor.)
EDIT: So, according to my FTP client the file permission is the same. So, the question is, why isn’t the file recognized any more, when I upload it manualy?
October 28, 2022 at 4:29 pm #1370580Hi Mike, I solve the problem. Basically, you already gave the answer: “or you can edit the un-minified one and then minify it online” That was the key. Though, what’s really odd, now I can even undo the change by uploading the original file. That part still makes no sense.
Nonetheless, this hack is one big BS solution, because it is undone every time WP is updated. Would it be possible, that Kriesi contacts the WP support to tell them to 1. make 100% volume the default (as explained, anything else makes technically no sense) and 2. to add an option where the default volume can be permanently changed? I think you contacting them has way more impact, than I’m doing it.
October 28, 2022 at 5:58 pm #1370591Hi,
Glad to hear that you have sorted it out. You can request a WordPress feature request at the WordPress Support forum, we have no more say there than you or anyone else would, so it would be best for you to make the request yourself and following up with their feedback.
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeOctober 28, 2022 at 6:39 pm #1370597Yes, you can close the thread. Thank you.
Regards,
Thomas -
AuthorPosts
- The topic ‘Setting default volume of audio player to 100%’ is closed to new replies.