|
@@ -13,11 +13,13 @@ class FeatureFlags {
|
13
|
13
|
*
|
14
|
14
|
* @param {boolean} flags.runInLiteMode - Enables lite mode for testing to disable media decoding.
|
15
|
15
|
* @param {boolean} flags.sourceNameSignaling - Enables source names in the signaling.
|
|
16
|
+ * @param {boolean} flags.receiveMultipleVideoStreams - Signal support for receiving multiple video streams.
|
16
|
17
|
*/
|
17
|
18
|
init(flags) {
|
18
|
19
|
this._runInLiteMode = Boolean(flags.runInLiteMode);
|
19
|
20
|
|
20
|
21
|
this._sourceNameSignaling = Boolean(flags.sourceNameSignaling);
|
|
22
|
+ this._receiveMultipleVideoStreams = Boolean(flags.receiveMultipleVideoStreams);
|
21
|
23
|
this._sendMultipleVideoStreams = Boolean(flags.sendMultipleVideoStreams);
|
22
|
24
|
this._ssrcRewriting = Boolean(flags.ssrcRewritingOnBridgeSupported);
|
23
|
25
|
|
|
@@ -40,6 +42,15 @@ class FeatureFlags {
|
40
|
42
|
return this._sourceNameSignaling && this._sendMultipleVideoStreams && this._usesUnifiedPlan;
|
41
|
43
|
}
|
42
|
44
|
|
|
45
|
+ /**
|
|
46
|
+ * Checks if receiving multiple video streams is supported.
|
|
47
|
+ *
|
|
48
|
+ * @returns {boolean}
|
|
49
|
+ */
|
|
50
|
+ isReceiveMultipleVideoStreamsSupported() {
|
|
51
|
+ return this._receiveMultipleVideoStreams;
|
|
52
|
+ }
|
|
53
|
+
|
43
|
54
|
/**
|
44
|
55
|
* Checks if the run in lite mode is enabled.
|
45
|
56
|
* This will cause any media to be received and not decoded. (Directions are inactive and no ssrc and ssrc-groups
|