iphone Programming Glossary: uieventsubtyperemotecontroltoggleplaypause
Playing AVAudio from iPod Library while device is locked http://stackoverflow.com/questions/11515883/playing-avaudio-from-ipod-library-while-device-is-locked AVPlayer play else if event.subtype UIEventSubtypeRemoteControlPause AVPlayer pause else if event.subtype UIEventSubtypeRemoteControlTogglePlayPause if AVPlayer.playing AVPlayer play else if AVPlayer.playing AVPlayer pause else if event.subtype UIEventSubtypeRemoteControlNextTrack..
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 resignFirstResponder then respond to the void remoteControlReceivedWithEvent UIEvent event switch event.subtype case UIEventSubtypeRemoteControlTogglePlayPause if mPlayer rate 0 mPlayer play else mPlayer pause break case UIEventSubtypeRemoteControlPlay mPlayer play break case..
iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream http://stackoverflow.com/questions/3361619/iphone-ios4-replacing-ipod-dock-icon-whilst-playing-background-audio-stream canBecomeFirstResponder return YES And void remoteControlReceivedWithEvent UIEvent event switch event.subtype case UIEventSubtypeRemoteControlTogglePlayPause if audio.rate 0.0 audio play else audio pause break case UIEventSubtypeRemoteControlPlay audio play break case UIEventSubtypeRemoteControlPause..
iOS 4: Remote controls for background audio http://stackoverflow.com/questions/3456435/ios-4-remote-controls-for-background-audio BOOL canBecomeFirstResponder return YES void remoteControlReceivedWithEvent UIEvent event switch event.subtype case UIEventSubtypeRemoteControlTogglePlayPause if iPhoneAppDelegate backgroundAudioPlayer .playing iPhoneAppDelegate pauseBackgroundAudioPlayer else iPhoneAppDelegate..
remoteControlReceivedWithEvent in AVAudio is not being called http://stackoverflow.com/questions/6843309/remotecontrolreceivedwithevent-in-avaudio-is-not-being-called UIEvent receivedEvent if receivedEvent.type UIEventTypeRemoteControl switch receivedEvent.subtype case UIEventSubtypeRemoteControlTogglePlayPause self playButtonPressed playButton self testing break case UIEventSubtypeRemoteControlPreviousTrack self rewButtonReleased..
AVAudioPlayer play file in Background http://stackoverflow.com/questions/7965419/avaudioplayer-play-file-in-background @ remoteControlReceivedWithEvent if receivedEvent.type UIEventTypeRemoteControl switch receivedEvent.subtype case UIEventSubtypeRemoteControlTogglePlayPause NSLog @ UIEventSubtypeRemoteControlTogglePlayPause break case UIEventSubtypeRemoteControlPreviousTrack NSLog @ UIEventSubtypeRemoteControlPreviousTrack.. UIEventTypeRemoteControl switch receivedEvent.subtype case UIEventSubtypeRemoteControlTogglePlayPause NSLog @ UIEventSubtypeRemoteControlTogglePlayPause break case UIEventSubtypeRemoteControlPreviousTrack NSLog @ UIEventSubtypeRemoteControlPreviousTrack break case UIEventSubtypeRemoteControlNextTrack..
|