Setting up a private audio session AVCaptureSession

My use case is the following: I am trying to add audio recording using AVCaptureSession to my application. The app can play music / sounds and I don't want to change anything about the AVAudioSession app. That is, a shared audio session can have a category other than PlayAndRecord. So no problem, I can just set usesApplicationAudioSession

to false on my AVCaptureSession and it will use a new AudioSession different from the application's audio session. However, the documentation states that this

may cause interruption if your application uses its own audio session for playback.

What does he really do. My question is, is there a way to access the private audio session of the AVCaptureSession (and set it up to mix with other audio sources)? As I said, for this scenario, I don't want to change anything about the application sharing session configuration.

Any help or hints would be appreciated.

+3
ios audio avcapturesession avaudiosession


source to share


No one has answered this question yet

Check out similar questions:

6
Record audio on iOS without stopping music playback
five
MPMoviePlayerController stops iPod playback and does not restart
3
How to resolve AVCaptureSession v AVAudioSession conflict in iOS?
3
iTunes Music stops when I open the app
3
KVO on AudioSession isOtherAudioPlaying not working
2
Sound does not play on device if AVAudioSession MixWithOthers is set to yes
2
AVAudioSession cannot play sound after re-enabling the app
2
AVCaptureSession error after setting up another AVAudioSession
1
Resume an interrupted music player without deactivating the current application audio recording session
1
iPhone Recovers AudioSession in Play & Record After Playing YouTube Videos



All Articles
Loading...
X
Show
Funny
Dev
Pics