Commit 8ba54be2 authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

Force audio route to speaker on tablets

No related merge requests found
Pipeline #28224 passed with stage
in 2 minutes and 37 seconds
Showing with 5 additions and 0 deletions
......@@ -27,12 +27,14 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import org.linhome.LinhomeApplication
import org.linhome.LinhomeApplication.Companion.coreContext
import org.linhome.LinhomeApplication.Companion.corePreferences
import org.linhome.customisation.DeviceTypes
import org.linhome.entities.Action
import org.linhome.entities.Device
import org.linhome.entities.HistoryEvent
import org.linhome.linphonecore.CoreContext
import org.linhome.linphonecore.extensions.*
import org.linhome.store.DeviceStore
import org.linhome.utils.extensions.existsAndIsNotEmpty
......@@ -113,6 +115,9 @@ class CallViewModel(val call: Call) : ViewModel() {
call.requestNotifyNextVideoFrameDecoded()
}
}
if (LinhomeApplication.instance.tablet()) {
coreContext.core.forceSpeakerAudioRoute()
}
}
private fun fireActionsOnCallStateChanged(cstate: Call.State) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment