views:

1437

answers:

1

Is there a way I can get the current system volume level on the iPhone?

I'm thinking maybe there's a way to make an MPVolumeView and get the value from that.

+1  A: 

Celestial.framework has an AVSystemController class that lets you get and set the current volume. Unfortunately it is a private class so Apple won't accept it in App Store submissions

If it helps, you can abuse the public MPVolumeView class a bit: http://www.stormyprods.com/blogger/2008/09/proper-usage-of-mpvolumeview-class.html

rpetrich
How did I miss that? Thanks!
Ben Alpert
Hi, rpetrich , is it possible to change the systemwide volume via the MPVolumeView ...
Robin
Robin: yes, it's possible, but don't expect to have your app in the store if you do (and there's much simpler methods that provide easy access in Celestial)
rpetrich