简体   繁体   English

是否可以在iPhone SDK中更改全局音量?

[英]Is it possible to change global sound volume in iphone SDK?

Is it possible to change global sound volume from our app in iphone SDK? 是否可以通过iPhone SDK中的应用更改全局音量?

If yes, how? 如果是,怎么办?

Thanks! 谢谢!

The only way you can do that is throught MPVolumeView. 唯一的方法就是通过MPVolumeView。 There is no such code to make it louder unless the user do it throught the standard component. 除非用户在标准组件中进行编码,否则没有这样的代码可以使其声音更大。 I think the reason is way it is not only an input control but when you change the volume in the phisical button it is displayed back in the MPVolumeView too. 我认为原因是它不仅是输入控件,而且当您更改物理按钮中的音量时,它也将显示回MPVolumeView中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM