1

I know there is the MPMusicPlayerController class in which I can set and change the volume of a media file - what is the class called that allows me to change the system volume? ringtones and alert sounds etc.

Nothing in the apple forums is a good help right now:-)

Cheers Jeff

jwknz
  • 6,598
  • 16
  • 72
  • 115
  • 1
    I'd be very surprised if Apple allows third party developers to fiddle with this at all (feel free to correct me if I'm wrong though). Imagine the havoc you could wreak if you wanted to be malicious, or if you mistakenly muted/unmuted a device without the user's knowledge. – Brian Willis Jan 17 '12 at 00:08

1 Answers1

1

http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPVolumeView_Class/Reference/Reference.html

...is your friend. See also this question - iOS: Change Device Volume

I believe Brian is correct in his comment that there's no way to programatically do it in the public API - the user must trigger the action, to stop apps from doing all sorts of naughty things.

Community
  • 1
  • 1
lxt
  • 31,146
  • 5
  • 78
  • 83
  • Well the trigger is the point - like I want a button to set a volume, but the user has to press the button before it changes anything. – jwknz Jan 17 '12 at 00:16
  • just checked your links to double check, but have come across those already:-) thanks though:-) – jwknz Jan 17 '12 at 00:17
  • Yeah, there's no other way to programatically do it on iOS. Do file a feature request with Apple if it's something you'd like to see. – lxt Jan 17 '12 at 00:21
  • cool will do - just i'll bet as soon as it is released my app idea will go out the window, because someone will do it better a whole quicker then I will:-) Mind you then again it is probably already thought off, but for the reasons stated not implemented:-) – jwknz Jan 17 '12 at 00:22