Tagged: x
-
AuthorPosts
-
April 29, 2016 at 10:40 am #905814
relghaziParticipantHello,
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,
RezaApril 30, 2016 at 2:40 am #906663
Rue NelModeratorHello 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 / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thank you.
April 30, 2016 at 4:24 pm #907247
relghaziParticipantThis reply has been marked as private.May 1, 2016 at 5:35 pm #908273
RadModeratorHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-905814 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
