1

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.

4

1 に答える 1

0

私はサーバー側の解決策を見つけることになりました。

サーバーは、最初のビデオパケットと一緒に最初のオーディオパケットを送信する必要がありました。

それが価値があるもののために、私はを使用してnginx-rtmp-moduleいます。このコミットは、私の問題を修正した特定のコミットです。

于 2013-02-06T16:00:36.273 に答える