I have an AVCaptureSession
utilizing 2 AVCaptureDeviceInput
's. The first is AVCaptureDevicePositionFront
and the second is [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeAudio]
.
This works great normally, but when I am in a call, the microphone is in use (obviously). Is there any way to apply a "blank" audio track to the AVCaptureSession
? I can use some other work around if need be, but integrating with the AVCaptureSession
would be good because then all my current code can stay as it.
I have tried subclassing AVCaptureDevice
and always returning YES
for supportsAVCaptureSessionPreset:
, but that was a predictable fail.
The video is streamed in realtime (via RTMP) to the server, so adding the audio in afterwards isn't really an option. Adding in the audio in the nginx RTMP server doesn't seem realistic, so I am hoping to solve this on the device.