-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Describe the bug
When an incoming call is answered using the Azure Communication Services Call Composite UI, the default audio output is set to speaker instead of the earpiece/microphone (default device). This causes unexpected loud audio in situations where the user expects a private call through the phone earpiece.
To Reproduce
Steps to reproduce the behavior:
- Receive an incoming call using the Azure Communication Services Call Composite UI.
- Answer the call.
- Observe that the call audio is automatically routed to the speaker.
- There is no option to default to the earpiece/mic without manually switching the audio route.
- This bug is always reproducible.
- Code snippet
I used to initialized callComposite:
callComposite = CallCompositeBuilder()
.applicationContext(context)
.credential(credential)
.displayName("")
.callScreenOrientation(CallCompositeSupportedScreenOrientation.PORTRAIT)
.telecomManagerOptions(
CallCompositeTelecomManagerOptions(
CallCompositeTelecomManagerIntegrationMode.SDK_PROVIDED_TELECOM_MANAGER,
PHONE_ACCOUNT_ID
)).build()
For accept incoming call :
callComposite?.accept(context, incomingCallId, getLocalOption())
Expected behavior
When the user answers an incoming call, the audio output should default to the phone’s earpiece/mic (default in-call device), not the loudspeaker. The user should have to explicitly switch to speaker mode if desired.
Same behavior can compare with Teams.
Screenshots
After accepting incoming call, default audio is speaker
AzureCommunicationUILibrary
- Version: [v1.14.2] & all version
Smartphone (please complete the following information):
- Device: Samsung Galaxy M35
- API: 35
Additional context
This issue affects the expected user experience for normal phone calls. By default, users expect to hold the phone to their ear, not have the speaker enabled automatically for incoming calls.
