iphone Programming Glossary: mplayer
Is it possible to play video using Avplayer in Background? http://stackoverflow.com/questions/15470452/is-it-possible-to-play-video-using-avplayer-in-background sharedApplication beginReceivingRemoteControlEvents self becomeFirstResponder and void viewWillDisappear BOOL animated mPlayer pause super viewWillDisappear animated UIApplication sharedApplication endReceivingRemoteControlEvents self resignFirstResponder.. remoteControlReceivedWithEvent UIEvent event switch event.subtype case UIEventSubtypeRemoteControlTogglePlayPause if mPlayer rate 0 mPlayer play else mPlayer pause break case UIEventSubtypeRemoteControlPlay mPlayer play break case UIEventSubtypeRemoteControlPause.. UIEvent event switch event.subtype case UIEventSubtypeRemoteControlTogglePlayPause if mPlayer rate 0 mPlayer play else mPlayer pause break case UIEventSubtypeRemoteControlPlay mPlayer play break case UIEventSubtypeRemoteControlPause..
|