Quantcast
Channel: MPMoviePlayer play on when application goes Background - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Naina Soni for MPMoviePlayer play on when application goes Background

$
0
0

You need to do remote control setting in combination with Background support setting in ios5-

// register your app for remote control

if([[UIApplication sharedApplication]  respondsToSelector:@selector(beginReceivingRemoteControlEvents)])    [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];// allows you to play in the background when app is suspended in iOS5[[AVAudioSession sharedInstance] setDelegate: self];[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlayback error:nil];

Place both the settings in application didFinishLaunching delegate


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>