iOS webRTC Unconfiguring audio session

40 views
Skip to first unread message

Katharine N

unread,
Aug 28, 2022, 7:12:53 AMAug 28
to discuss-webrtc
Help me guys! User want stop VideoChat, I close peerConnection, and others and it leeds to next logs AudioDeviceIOS::ShutdownPlayOrRecord
Stopping audio unit.
Unconfiguring audio session.
AVAudioSession.mm:1079:-[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.

but I don't need it. During all time from start app I set category AVAudioSessionCategoryPlayAndRecord and record audio in file, and I also need to continue it after videochat stop, but now webRTC stop recording and corrupt my audio file.

How I can achieve what i want, maybe someone knows ??

Alin Radut

unread,
Aug 28, 2022, 7:28:44 AMAug 28
to discuss...@googlegroups.com
You should use RTCAudioSession's usrManualAudio set to true/YES and  activate and deactivate the audio session yourself. 

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/9ec6d657-25a7-4af5-876d-ded2f6214abcn%40googlegroups.com.

Barry Duff

unread,
Sep 3, 2022, 1:10:41 PMSep 3
to discuss...@googlegroups.com
i might


--
Reply all
Reply to author
Forward
0 new messages