Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 mergAV 在 iOS 的 LiveCode 项目上录制视频。一切正常,但是当我播放音频时,mergAVCamSet 停止工作并且似乎冻结了。有没有办法播放音频并让 mergAVCamSet 继续工作或这两个操作发生冲突?
您需要将音频类别设置为播放和录制尝试:
mergAVAudioSessionSetCategory "play and record",false,false,false,true
请注意最后的 true 切换音频是否来自扬声器而不是接收器。