I m 为Peter视频聊天项目开展研究。
I ve tried this to capture image,
use AVCaptureVideoPreviewLayer
to display camera view
and put a MPMoviePlayerController
to play network stream video at the back.
They all work until I add an audio input to the AVCaptureSession
.
The MPMoviePlayerController
stop the AVCaptureSession
if there is audio input.
I think of using AVAudioSession
for both playing and recording audio and some other way to play video,
but the documentation of AVAudioPlayer
said
“Apple建议,除非你从网络流中听到的声音,或要求非常低的I/O latency,否则你就利用这一类别进行录音。
我发现<>《多媒体方案拟订指南>说:
“提供最低声响,特别是在同时投入和产出时(如VoIP申请),使用I/O单位或“声音处理I/O”单位。
在电话上播放视频聊天是否正确?