Browse Source

feat(ssrc-rewriting) Advertise support to Jicofo. (#2209)

* feat(ssrc-rewriting) Advertise support to Jicofo.

* Fix unit test
tags/v0.0.2
Jaya Allamsetty 2 years ago
parent
commit
5855ca72f6
No account linked to committer's email address
2 changed files with 7 additions and 0 deletions
  1. 1
    0
      modules/xmpp/SignalingLayerImpl.spec.js
  2. 6
    0
      modules/xmpp/xmpp.js

+ 1
- 0
modules/xmpp/SignalingLayerImpl.spec.js View File

@@ -180,6 +180,7 @@ describe('SignalingLayerImpl', () => {
180 180
                 );
181 181
             });
182 182
             it('from a user with SourceInfo and ssrc-rewriting disabled', () => {
183
+                FeatureFlags.init({ });
183 184
                 const emitterSpy = spyOn(signalingLayer.eventEmitter, 'emit');
184 185
                 const sourceInfo = {
185 186
                     '12345678-a0': {

+ 6
- 0
modules/xmpp/xmpp.js View File

@@ -8,6 +8,7 @@ import * as JitsiConnectionEvents from '../../JitsiConnectionEvents';
8 8
 import { XMPPEvents } from '../../service/xmpp/XMPPEvents';
9 9
 import browser from '../browser';
10 10
 import { E2EEncryption } from '../e2ee/E2EEncryption';
11
+import FeatureFlags from '../flags/FeatureFlags';
11 12
 import Statistics from '../statistics/statistics';
12 13
 import GlobalOnErrorHandler from '../util/GlobalOnErrorHandler';
13 14
 import Listenable from '../util/Listenable';
@@ -259,6 +260,11 @@ export default class XMPP extends Listenable {
259 260
 
260 261
         logger.debug('Receiving multiple video streams is enabled');
261 262
         this.caps.addFeature('http://jitsi.org/receive-multiple-video-streams');
263
+
264
+        // Advertise support for ssrc-rewriting.
265
+        if (FeatureFlags.isSsrcRewritingSupported()) {
266
+            this.caps.addFeature('http://jitsi.org/ssrc-rewriting-1');
267
+        }
262 268
     }
263 269
 
264 270
     /**

Loading…
Cancel
Save