Trying to troubleshoot missing participant video when changing conference layout sometimes

This commit is contained in:
Sylvain Berfini 2025-10-06 14:04:19 +02:00
parent b71249ea36
commit d694789d4b
2 changed files with 10 additions and 0 deletions

View file

@ -192,9 +192,16 @@ class ConferenceParticipantDeviceModel
@WorkerThread
fun destroy() {
clearWindowId()
device.removeListener(deviceListener)
}
@WorkerThread
fun clearWindowId() {
Log.i("$TAG Clearing participant [${device.address.asStringUriOnly()}] device window ID")
device.nativeVideoWindowId = null
}
@UiThread
fun setTextureView(view: TextureView) {
Log.i(

View file

@ -463,6 +463,9 @@ class ConferenceViewModel
}
}
Log.i("$TAG Clearing participant devices window IDs")
participantDevices.value.orEmpty().forEach(ConferenceParticipantDeviceModel::clearWindowId)
if (currentLayout == AUDIO_ONLY_LAYOUT) {
// Previous layout was audio only, make sure video isn't sent without user consent when switching layout
Log.i(