I need to stop playing music in my application when an incoming call is received or reached. I am using MPMoviePlayerController for online streaming. Is this their way of managing incoming call events?
Use this following notification to find the call status and you can stop the player. Add CoreTelephony.framework
#import <CoreTelephony/CTCall.h> [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callReceived:) name:CTCallStateIncoming object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callEnded:) name:CTCallStateDisconnected object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callConnected:) name:CTCallStateConnected object:nil];