- Home /
Question by
takami_20210201 · Aug 28, 2021 at 09:38 AM ·
iosvideomicrophone
Switching microphone status during video playback causes the video to stop.
Hello.
I am developing an Android and iOS application and am facing a problem that occurs only on iOS.
With a video playing, when I turn on (or off) the microphone for a voice call, the video stops playing.
I think it may be caused by AVAudioSession in iOS, but I don't know the solution.
I tried changing the Mode and Category when declaring the AVAudioSession in UnityAppController.mm, but that didn't solve the problem.
The following is the log shown in XCode when the video stops playing.
log:
AVAudioSession_iOS.mm:1206 Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
Thank you for your cooperation.
Comment