mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Don't enable video after stopping screen sharing for audio calls.
This commit is contained in:
parent
ba4413e702
commit
754208e164
@ -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 New Issue
Block a user