Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-02-04 00:46:53 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-04-20 17:02:58 +0300
commit48a74da64eac1a593116694f8c6ca299058f6304 (patch)
tree49a4a73c47a1645b98188dcd21bc9f65cb5b7ebb /src/utils/signaling.js
parentc313e70a6ec6180e64f09627172bf2ce9a7d5b2f (diff)
Update connections rather than create new ones on "negotiationneeded"
When an offer is requested to the HPB the old connection is stopped and a new one is created. If the HPB has support for updating the subscribers this is now used instead when negotiation is needed, as this prevents the existing connection (and thus the media) to be interrupted during the renegotiation. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/utils/signaling.js')
-rw-r--r--src/utils/signaling.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/signaling.js b/src/utils/signaling.js
index 6b6fbab32..c0d1fbb52 100644
--- a/src/utils/signaling.js
+++ b/src/utils/signaling.js
@@ -1292,7 +1292,7 @@ Signaling.Standalone.prototype.processRoomParticipantsEvent = function(data) {
}
}
-Signaling.Standalone.prototype.requestOffer = function(sessionid, roomType) {
+Signaling.Standalone.prototype.requestOffer = function(sessionid, roomType, sid = undefined) {
if (!this.hasFeature('mcu')) {
console.warn("Can't request an offer without a MCU.")
return
@@ -1302,7 +1302,7 @@ Signaling.Standalone.prototype.requestOffer = function(sessionid, roomType) {
// Got a user object.
sessionid = sessionid.sessionId || sessionid.sessionid
}
- console.debug('Request offer from', sessionid)
+ console.debug('Request offer from', sessionid, sid)
this.doSend({
type: 'message',
message: {
@@ -1313,6 +1313,7 @@ Signaling.Standalone.prototype.requestOffer = function(sessionid, roomType) {
data: {
type: 'requestoffer',
roomType,
+ sid,
},
},
})