mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Make sure speaker audio device is used if available when incoming early media call is ringing
This commit is contained in:
parent
5618ce2e88
commit
7366e9a560
1 changed files with 13 additions and 0 deletions
|
|
@ -305,6 +305,19 @@ class CoreContext
|
|||
}
|
||||
}
|
||||
}
|
||||
Call.State.IncomingEarlyMedia -> {
|
||||
if (core.ringDuringIncomingEarlyMedia) {
|
||||
val speaker = core.audioDevices.find {
|
||||
it.type == AudioDevice.Type.Speaker
|
||||
}
|
||||
if (speaker != null) {
|
||||
Log.i("$TAG Ringing during incoming early media enabled, make sure speaker audio device [${speaker.id}] is used")
|
||||
call.outputAudioDevice = speaker
|
||||
} else {
|
||||
Log.w("$TAG No speaker device found, incoming call early media ringing will be played on default device")
|
||||
}
|
||||
}
|
||||
}
|
||||
Call.State.OutgoingInit -> {
|
||||
val conferenceInfo = core.findConferenceInformationFromUri(call.remoteAddress)
|
||||
// Do not show outgoing call view for conference calls, wait for connected state
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue