mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 22:15:41 +03: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue