Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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?

    #1369795

    Hey 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,
    Mike

    #1369799

    Editing 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?

    #1369812

    Hi,
    Can you link to the instructions that you are using?

    Best regards,
    Mike

    #1370192

    Hi 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.

    #1370218

    Hi,
    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,
    Mike

    #1370455

    Hi 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?

    #1370580

    Hi 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.

    #1370591

    Hi,
    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,
    Mike

    #1370597

    Yes, you can close the thread. Thank you.

    Regards,
    Thomas

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Setting default volume of audio player to 100%’ is closed to new replies.