You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to customize the AudioSession myself. I tried setting AudioSessionOperationRestrictionAll or AudioSessionOperationRestrictionSetCategory, but it doesn’t work. The AudioSession still changes when joining a channel.
To Reproduce
Steps to reproduce the behavior:
Before joining a session, the AudioSession is set to AVAudioSessionCategorySoloAmbient with AVAudioSessionModeDefault
I set AudioSessionOperationRestrictionAll before joining the session. (Also tried AudioSessionOperationRestrictionSetCategory too)
After joining the session, the AudioSession changes to AVAudioSessionCategoryPlayAndRecord with AVAudioSessionModeVoiceChat
Expected behavior
I don’t want the Agora SDK to affect my custom Audio Session
Logs
[2024-10-29 10:31:42.838][1978485][I][iris_rtc_api_engine.cc:387] api name RtcEngine_setAudioSessionOperationRestriction_c492897 params "{"restriction":2}"
[2024-10-29 10:31:42.838][1978485][I][iris_rtc_api_engine.cc:451] api name RtcEngine_setAudioSessionOperationRestriction_c492897 result 0 outdata {"result":0}
Smartphone (please complete the following information):
OS: iOS 17.5
React Native: 0.72.12
Agora version: 4.4.0
Additional context
I want to make a video call and play a local audio file in the same time. So I want to custom Audio Session to resolve the volume issue.
The text was updated successfully, but these errors were encountered:
@liamdo192 Can you setAudioSessionOperationRestriction after engine.initialize immediately and try again? If still not work , pls contact to our tech support with detail logs : https://www.agora.io/en/customer-support/
Describe the bug
I want to customize the AudioSession myself. I tried setting AudioSessionOperationRestrictionAll or AudioSessionOperationRestrictionSetCategory, but it doesn’t work. The AudioSession still changes when joining a channel.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I don’t want the Agora SDK to affect my custom Audio Session
Logs
[2024-10-29 10:31:42.838][1978485][I][iris_rtc_api_engine.cc:387] api name RtcEngine_setAudioSessionOperationRestriction_c492897 params "{"restriction":2}"
[2024-10-29 10:31:42.838][1978485][I][iris_rtc_api_engine.cc:451] api name RtcEngine_setAudioSessionOperationRestriction_c492897 result 0 outdata {"result":0}
Smartphone (please complete the following information):
Additional context
I want to make a video call and play a local audio file in the same time. So I want to custom Audio Session to resolve the volume issue.
The text was updated successfully, but these errors were encountered: