mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 22:29:09 +00:00
Merge pull request #2684 from nextcloud/do-not-create-offer-for-received-screen-share
Do not create offer for received screen share
This commit is contained in:
commit
8b0a58faeb
@ -181,7 +181,9 @@ public class PeerConnectionWrapper {
|
||||
// set the recipient session ID in the assembled call message.
|
||||
NCSignalingMessage ncSignalingMessage = createBaseSignalingMessage("requestoffer");
|
||||
signalingMessageSender.send(ncSignalingMessage);
|
||||
} else if (!hasMCU && hasInitiated) {
|
||||
} else if (!hasMCU && hasInitiated && "video".equals(this.videoStreamType)) {
|
||||
// If the connection type is "screen" the client sharing the screen will send an
|
||||
// offer; offers should be created only for videos.
|
||||
peerConnection.createOffer(magicSdpObserver, mediaConstraints);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user