mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Disable full screen mode when remote device stops sending it's video
This commit is contained in:
parent
f048b895b5
commit
5300cf698d
1 changed files with 7 additions and 0 deletions
|
|
@ -336,6 +336,13 @@ class ActiveCallFragment : GenericCallFragment() {
|
|||
}
|
||||
}
|
||||
|
||||
callViewModel.isReceivingVideo.observe(viewLifecycleOwner) { receiving ->
|
||||
if (!receiving && callViewModel.fullScreenMode.value == true) {
|
||||
Log.i("$TAG We are no longer receiving video, leaving full screen mode")
|
||||
callViewModel.fullScreenMode.value = false
|
||||
}
|
||||
}
|
||||
|
||||
callViewModel.isSendingVideo.observe(viewLifecycleOwner) { sending ->
|
||||
coreContext.postOnCoreThread { core ->
|
||||
core.nativePreviewWindowId = if (sending) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue