mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
Don't enable video after stopping screen sharing for audio calls.
This commit is contained in:
parent
ba4413e702
commit
754208e164
1 changed files with 5 additions and 2 deletions
|
@ -796,8 +796,11 @@ class WebRtcCall(
|
|||
}
|
||||
|
||||
fun stopSharingScreen() {
|
||||
localVideoTrack?.setEnabled(false)
|
||||
screenSender?.let { removeStream(it) }
|
||||
peerConnectionFactoryProvider.get()?.let { configureVideoTrack(it) }
|
||||
if (mxCall.isVideoCall) {
|
||||
peerConnectionFactoryProvider.get()?.let { configureVideoTrack(it) }
|
||||
}
|
||||
sessionScope?.launch(dispatcher) { attachViewRenderersInternal() }
|
||||
}
|
||||
|
||||
|
@ -825,7 +828,7 @@ class WebRtcCall(
|
|||
* Returns true if the user is sharing the screen, false otherwise.
|
||||
*/
|
||||
fun isSharingScreen(): Boolean {
|
||||
return localVideoTrack?.id() == SCREEN_TRACK_ID
|
||||
return localVideoTrack?.enabled().orFalse() && localVideoTrack?.id() == SCREEN_TRACK_ID
|
||||
}
|
||||
|
||||
private suspend fun release() {
|
||||
|
|
Loading…
Reference in a new issue