Fixed behavior when video is disabled in settings, should not show incoming video calls as video nor route audio to speaker automatically

This commit is contained in:
Sylvain Berfini 2025-03-31 12:04:48 +02:00
parent 23810e41e5
commit bd52960749

View file

@ -227,6 +227,11 @@ class LinphoneUtils {
@WorkerThread
fun isVideoEnabled(call: Call): Boolean {
if (!call.core.isVideoEnabled) {
Log.w("$TAG Video is disabled in Core, assume call is audio only")
return false
}
val conference = call.conference
val isConference = conference != null