iphone Programming Glossary: setcategory
How do I record audio on iPhone with AVAudioRecorder? http://stackoverflow.com/questions/1010343/how-do-i-record-audio-on-iphone-with-avaudiorecorder stopButton stopButton release AVAudioSession audioSession AVAudioSession sharedInstance NSError err nil audioSession setCategory AVAudioSessionCategoryPlayAndRecord error err if err NSLog @ audioSession @ d @ err domain err code err userInfo description..
How to Play a sound using AVAudioPlayer when in Silent Mode in iPhone http://stackoverflow.com/questions/10322040/how-to-play-a-sound-using-avaudioplayer-when-in-silent-mode-in-iphone YES withFlags 0 error &error iOS5 and below if result && error deal with the error error nil result audioSession setCategory AVAudioSessionCategoryPlayback error &error if result && error deal with the error I thought I'd post this as an alternative..
Using AVCaptureSession and AVAudioPlayer together http://stackoverflow.com/questions/10903542/using-avcapturesession-and-avaudioplayer-together void setupAudioSession static BOOL audioSessionSetup NO if audioSessionSetup return AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil UInt32 doSetProperty 1 AudioSessionSetProperty kAudioSessionProperty_OverrideCategoryMixWithOthers..
AVAudioPlayer turns off iPod - how to work around? http://stackoverflow.com/questions/1507541/avaudioplayer-turns-off-ipod-how-to-work-around share improve this question This should work for you taken from my Ambiance app AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil UInt32 doSetProperty 1 AudioSessionSetProperty kAudioSessionProperty_OverrideCategoryMixWithOthers..
Play MP3 Files with iPhone SDK http://stackoverflow.com/questions/1973902/play-mp3-files-with-iphone-sdk self.soundFileURL newURL newURL release AVAudioSession sharedInstance setDelegate self AVAudioSession sharedInstance setCategory AVAudioSessionCategoryAmbient error nil Registers the audio route change listener callback function AudioSessionAddPropertyListener..
how to route iPhone audio to the bluetooth headset http://stackoverflow.com/questions/2375837/how-to-route-iphone-audio-to-the-bluetooth-headset the audio session AVAudioSession audioSession AVAudioSession sharedInstance audioSession setDelegate self audioSession setCategory AVAudioSessionCategoryPlayAndRecord error nil audioSession setActive YES error nil set up for bluetooth microphone input..
iPhone OS 4 Multitasking - Playing Audio In background http://stackoverflow.com/questions/3007527/iphone-os-4-multitasking-playing-audio-in-background continues with the screen locked include the following lines in your application ™s initialization code NSError setCategoryErr nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr.. application ™s initialization code NSError setCategoryErr nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr AVAudioSession sharedInstance setActive YES error activationErr The.. nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr AVAudioSession sharedInstance setActive YES error activationErr The AVAudioSessionCategoryPlayback category ensures that..
Entering background on iOS4 to play audio http://stackoverflow.com/questions/3161635/entering-background-on-ios4-to-play-audio
iphone: playing audio playlist in the background? http://stackoverflow.com/questions/3297571/iphone-playing-audio-playlist-in-the-background NSError error AVAudioPlayer ap AVAudioPlayer alloc initWithContentsOfURL url error error AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil AVAudioSession sharedInstance setActive YES error nil ap.delegate self mainController.audioPlayer..
how to handle the interruption in iphone http://stackoverflow.com/questions/3483282/how-to-handle-the-interruption-in-iphone and also when the ringer is set to silent AVAudioSession sharedInstance setDelegate self AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil ... If you want to continue to play the sound on iOS4 when your app gets suspended..
Play sound on iPhone even in silent mode http://stackoverflow.com/questions/3740528/play-sound-on-iphone-even-in-silent-mode Audio Sessions then include AVFoundation AVFoundation.h at the start of your file and AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil should do the trick. Note if you play music or sounds then iPod playback will..
How do I get my AVPlayer to play while app is in background? http://stackoverflow.com/questions/4771105/how-do-i-get-my-avplayer-to-play-while-app-is-in-background Added the UIBackgroundModes audio to the plist file. First this code radioAudio AVAudioSession alloc init radioAudio setCategory AVAudioSessionCategoryPlayback error nil radioAudio setActive YES error nil Then this NSString radioURL @ http xxx.xxx.xxx.. Set AudioSession NSError sessionError nil AVAudioSession sharedInstance setDelegate self AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayAndRecord error sessionError Pick any one of them 1. Overriding the output audio route UInt32..
how to record audio through an iPhone app? http://stackoverflow.com/questions/5602901/how-to-record-audio-through-an-iphone-app to establish an audio session using AVAudio session class AVAudioSession audioS AVAudioSession sharedInstance audioS setCategory AVAudioSessionCategoryPlayAndRecord error error audioS setActive YES error error NSURL url NSURL fileURLWithPath @ dev null..
Detecting the iPhone's Ring / Silent / Mute switch using AVAudioPlayer not working? http://stackoverflow.com/questions/6901363/detecting-the-iphones-ring-silent-mute-switch-using-avaudioplayer-not-worki launchOptions AVAudioSession audioSession AVAudioSession sharedInstance audioSession.delegate self audioSession setCategory AVAudioSessionCategoryAmbient error nil audioSession setActive YES error nil NSLog @ muted i self deviceIsSilenced ... I..
Play music in the background using AVAudioplayer http://stackoverflow.com/questions/7619794/play-music-in-the-background-using-avaudioplayer @ mp3 AVAudioPlayer audioPlayer AVAudioPlayer alloc initWithContentsOfURL url error nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error nil AVAudioSession sharedInstance setActive YES error nil UIApplication sharedApplication..
How do I start playing audio when in silent mode & locked in iOS 6? http://stackoverflow.com/questions/9725192/how-do-i-start-playing-audio-when-in-silent-mode-locked-in-ios-6 i.e. 1 Set Required background mode to App plays audio 2 set Application does not run in background to YES. NSError setCategoryErr nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr.. does not run in background to YES. NSError setCategoryErr nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr AVAudioSession sharedInstance setActive YES error activationErr Then.. nil NSError activationErr nil AVAudioSession sharedInstance setCategory AVAudioSessionCategoryPlayback error setCategoryErr AVAudioSession sharedInstance setActive YES error activationErr Then you need to write these much code in AppDelege Now..
Best practice when implementing copyWithZone: http://stackoverflow.com/questions/9907154/best-practice-when-implementing-copywithzone NSZone zone Crime newCrime self class allocWithZone zone init if newCrime newCrime setMonth self month newCrime setCategory self category newCrime setCoordinate self coordinate newCrime setLocationName self locationName newCrime setTitle self title.. of NSObject. id copyWithZone NSZone zone Crime newCrime super copyWithZone zone newCrime setMonth self month newCrime setCategory self category newCrime setCoordinate self coordinate newCrime setLocationName self locationName newCrime setTitle self title..
|