Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outgoing call ringback on Android is too loud. #218

Open
RamsayRomero opened this issue Mar 6, 2023 · 3 comments
Open

Outgoing call ringback on Android is too loud. #218

RamsayRomero opened this issue Mar 6, 2023 · 3 comments

Comments

@RamsayRomero
Copy link

On iOS the ringback that plays when calling InCallManager.start sounds like a normal outgoing call ringback and plays at a normal volume through the earpiece, not the speaker. On Android calling the same method results in a ringback that is played loudly through the speaker, and the audio sounds like an incoming call ringtone. Is this expected behavior on Android or is it just my device? Is there anything I can do to fix this issue?

@wilmxre
Copy link

wilmxre commented Mar 27, 2023

@RamsayRomero hey man, did you find a solution for android?

@RamsayRomero
Copy link
Author

RamsayRomero commented Apr 19, 2023

@wilmxre As far as the ringback sounding like in incoming call ringtone, the default ringback just uses the default system ringtone. There is no default system ringback on Android so you have to provide your own and set the ringback to 'BUNDLE'.

As far as the ringback loudly playing through the speaker, I can't figure out what is going wrong. I looked at the native InCallManager logs while producing this issue and the logs say that my device status is earpiece and that the device is not on speakerphone:

D/InCallManager: New device status: available=[SPEAKER_PHONE, EARPIECE], selected=EARPIECE
D/InCallManager: MediaPlayer mRingback onPrepared(), start play, isSpeakerPhoneOn false

Yet it still plays loudly through the speaker, and once the call is answered, the call audio plays normally through the earpiece.

@KolissnikBogdan
Copy link

@RamsayRomero did you manage to figure out the cause of this problem? maybe you have some solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants