如何编辑默认音量? [英] How do I edit the Default Volume?
问题描述
我想将 wordpress mediaelement.js 播放器的默认音量设置为 100%.似乎默认值在 80% 左右.
I'd like to set the default audio volume on the wordpress mediaelement.js player to be at 100% volume. It appears that the default is somewhere around 80%.
谁能告诉我需要更改哪一部分代码才能做到这一点?
Can anyone tell me which bit of code I need to change in order to do this?
如果 Wordpress 的未来版本为现在的原生播放器提供基本的设置"功能,我们就可以更改默认音量和颜色等内容,那就太好了.
It'd be great if future versions of Wordpress come with a basic 'Settings' function for the now native player so we can alter thing like default volume and colours.
推荐答案
对这个问题也很感兴趣.所以你必须去你的文件夹,如:
Got interested too with that question. So you have to go to your folder like:
/wordpress/wp-includes/js/mediaelement/
/wordpress/wp-includes/js/mediaelement/
文件名:
mediaelement-and-player.min.js
mediaelement-and-player.min.js
Ctrl+F
并搜索 - startVolume
它给我找到了 2 个相似的结果 startVolume:0.8;
一个可能用于视频,第二个用于音频.所以把它从0.8
改为1
.然后在您的页面上按 ctrl+F5,我们就完成了!:)
It found me 2 similar results startVolume:0.8;
One probably for video and second for audio. So change it from 0.8
to 1
. Then ctrl+F5 on your page and we're done! :)
这篇关于如何编辑默认音量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!