Ok, I feel a little stupid. It turns out my key UIApplicationModes had a
space in front of it. Doh!

Well, to anyone having similar problems, ensure your info.plist looks like
this

<key>UIBackgroundModes</key>
<array>
     <string>audio</string>
</array>

and setup your playback code like this:

                        AVAudioSession audioSession =
AVAudioSession.SharedInstance();
                        NSError error;
                        
audioSession.SetCategory(AVAudioSession.CategoryPlayback.ToString(),out
error);
                        audioSession.SetActive(true,out error);
                        
                        
UIApplication.SharedApplication.BeginReceivingRemoteControlEvents();
                        
                        AudioPlayer = new AVPlayer();

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Background-Audio-with-AVPlayer-tp3807564p3809722.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to