mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Attempt to not rely on TelecomCallControlCallback endpoint API
This commit is contained in:
parent
31e15ddfca
commit
9066d41daa
2 changed files with 8 additions and 4 deletions
|
|
@ -143,7 +143,9 @@ class TelecomCallControlCallback(
|
|||
}.launchIn(scope)
|
||||
|
||||
callControl.currentCallEndpoint.onEach { endpoint ->
|
||||
var newEndpointToUse = endpoint
|
||||
return@onEach
|
||||
|
||||
/*var newEndpointToUse = endpoint
|
||||
if (endpointUpdateRequestFromLinphone) {
|
||||
Log.i("$TAG Linphone requests to use [${endpoint.name}] audio endpoint with type [${endpointTypeToString(endpoint.type)}]")
|
||||
} else {
|
||||
|
|
@ -193,7 +195,7 @@ class TelecomCallControlCallback(
|
|||
}, 200)
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}.launchIn(scope)
|
||||
|
||||
callControl.isMuted.onEach { muted ->
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class AudioUtils {
|
|||
null
|
||||
}
|
||||
|
||||
if (!skipTelecom) {
|
||||
/*if (!skipTelecom) {
|
||||
val callId = currentCall?.callLog?.callId.orEmpty()
|
||||
Log.i("$TAG Trying to change audio endpoint using Telecom Manager APIs")
|
||||
val success = coreContext.telecomManager.applyAudioRouteToCallWithId(types, callId)
|
||||
|
|
@ -109,7 +109,9 @@ class AudioUtils {
|
|||
} else {
|
||||
Log.i("$TAG Trying to change audio endpoint directly in Linphone SDK")
|
||||
applyAudioRouteChangeInLinphone(currentCall, types, output)
|
||||
}
|
||||
}*/
|
||||
Log.i("$TAG Trying to change audio endpoint directly in Linphone SDK")
|
||||
applyAudioRouteChangeInLinphone(currentCall, types, output)
|
||||
}
|
||||
|
||||
fun applyAudioRouteChangeInLinphone(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue