Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am using this same technique, however I am noticing the following behavior:</p> <p>On an iPod touch G2: The MPVolumeView slider works and fully responds to the rocker switch from app startup time.</p> <p>On an iPhone Gen 1 and 3G: The MPVolumeView slider doesn't start changing the volume until media playback has occurred via the AudioQueue APIs, and will stop changing the volume when AudioSessionSetActive(false) is called. Even more bizarre: if you hit the rocker switch on the iPhone while using the AudioQueue APIs during playback then the MPVolumeView slider will work for the rest of the lifetime of the app.</p> <p><a href="http://blog.stormyprods.com/2008/09/proper-usage-of-mpvolumeview-class.html" rel="nofollow noreferrer">This code</a> keeps everything in sync, and tends to help with ensuring that the rocker switch and the slider stay in sync, but it doesn't eliminate the issues I am having with MPVolumeView on an iPhone.</p> <p>All of my experience here is under iPhone OS 3.0 with the iPhone 3.0 SDK.</p> <p>I hope this helps narrow down your problem somewhat.</p> <p>My next tactic was to start doing things with kAudioSessionProperty_AudioRoute and try alternate values for kAudioSessionProperty_AudioCategory to see what happens.</p> <p>Side note: Thanks to everyone on the IB techniques for creation and managing the MPVolumeView. I was using code to create and place it, and I keep forgetting about the technique where you can set the type of the UIView in IB.</p> <p>Side note 2: In working with the MPVolumeView I discovered that if you set the audio category to anything other than kAudioSessionCategory_MediaPlayback that the MPVolumeView will display the text "iPhone..." when the iPhone is set to silent mode.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload