mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-02-07 14:58:24 +00:00
Fixed video direction when toggling camera during call
This commit is contained in:
parent
0c261ca4cb
commit
7607607857
1 changed files with 1 additions and 2 deletions
|
|
@ -615,9 +615,8 @@ class CurrentCallViewModel @UiThread constructor() : ViewModel() {
|
|||
} else if (params != null) {
|
||||
params.isVideoEnabled = true
|
||||
params.videoDirection = when (currentCall.currentParams.videoDirection) {
|
||||
MediaDirection.RecvOnly -> MediaDirection.SendRecv
|
||||
MediaDirection.SendRecv, MediaDirection.SendOnly -> MediaDirection.RecvOnly
|
||||
else -> MediaDirection.SendOnly
|
||||
else -> MediaDirection.SendRecv
|
||||
}
|
||||
Log.i(
|
||||
"$TAG Updating call with video enabled and media direction set to ${params.videoDirection}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue