Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #905814
    relghazi
    Participant

    Hello,

    I am trying to figure out how to set the default audio player’s volume to about 50% and can’t figure out a way. Audio always plays at full blast which is a real user deterrent.

    I have tried to no avail:
    – changing the values of startVolume from .8 to .5 in /wp-includes/js/mediaelement/mediaelement-and-player.min.js
    – adding the following script to the global javascript section:

    wp_localize_script( 'wp-mediaelement', '_wpmejsSettings', array(
    	'pluginPath' => includes_url( 'js/mediaelement/', 'relative' ),
    	'startVolume' => 0.1
    ) );

    – using various wp audio plugins…

    Is this a known WordPress bug or perhaps a conflict between X and the native WordPress audio player?

    It would be really cool if we had access to a default volume variable in Cornerstone…

    Thanks,
    Reza

    #906663
    Rue Nel
    Moderator

    Hello Reza,

    Thanks for writing in! Could you please post the complete code of the global javascript section? The priority should be higher so that it will be executed last.

    To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #907247
    relghazi
    Participant
    This reply has been marked as private.
    #908273
    Rad
    Moderator

    Hi there,

    That code will not work on custom javascript because it’s a PHP code. A WordPress’s function that localize javascript. Please check this http://stackoverflow.com/questions/18542960/how-do-i-edit-the-default-volume

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-905814 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>