mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Trying to troubleshoot missing participant video when changing conference layout sometimes
This commit is contained in:
parent
58295401ef
commit
a1e39bc1ef
2 changed files with 10 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -460,6 +460,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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue