Skip to content

Commit

Permalink
Commit with unresolved merge conflicts outside of submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk authored and github-actions[bot] committed Jun 24, 2024
1 parent b0b485c commit 4fdf18d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ fun OngoingCallScreen(
hangUpCall = { sharedCallingViewModel.hangUpCall { activity.finishAndRemoveTask() } },
toggleVideo = sharedCallingViewModel::toggleVideo,
flipCamera = sharedCallingViewModel::flipCamera,
<<<<<<< HEAD
setVideoPreview = {
sharedCallingViewModel.setVideoPreview(it)
ongoingCallViewModel.startSendingVideoFeed()
Expand All @@ -146,6 +147,11 @@ fun OngoingCallScreen(
ongoingCallViewModel.stopSendingVideoFeed()
},
onCollapse = { activity.moveTaskToBack(true) },
=======
setVideoPreview = sharedCallingViewModel::setVideoPreview,
clearVideoPreview = sharedCallingViewModel::clearVideoPreview,
navigateBack = navigator::navigateBack,
>>>>>>> 37e8ed56b (fix: camera on/off button when in fullscreen [WPB-9815] (#3121))
requestVideoStreams = ongoingCallViewModel::requestVideoStreams,
hideDoubleTapToast = ongoingCallViewModel::hideDoubleTapToast,
onPermissionPermanentlyDenied = {
Expand Down Expand Up @@ -197,6 +203,16 @@ fun OngoingCallScreen(
lifecycleOwner.lifecycle.removeObserver(observer)
}
}

// Start/stop sending video feed based on the camera state when the call is established.
LaunchedEffect(sharedCallingViewModel.callState.callStatus, sharedCallingViewModel.callState.isCameraOn) {
if (sharedCallingViewModel.callState.callStatus == CallStatus.ESTABLISHED) {
when (sharedCallingViewModel.callState.isCameraOn) {
true -> ongoingCallViewModel.startSendingVideoFeed()
false -> ongoingCallViewModel.stopSendingVideoFeed()
}
}
}
}

@OptIn(ExperimentalMaterial3Api::class)
Expand Down

0 comments on commit 4fdf18d

Please sign in to comment.