|
@@ -28,6 +28,7 @@ import { E2EEncryption } from './modules/e2ee/E2EEncryption';
|
28
|
28
|
import E2ePing from './modules/e2eping/e2eping';
|
29
|
29
|
import Jvb121EventGenerator from './modules/event/Jvb121EventGenerator';
|
30
|
30
|
import FeatureFlags from './modules/flags/FeatureFlags';
|
|
31
|
+import { LiteModeContext } from './modules/litemode/LiteModeContext';
|
31
|
32
|
import ReceiveVideoController from './modules/qualitycontrol/ReceiveVideoController';
|
32
|
33
|
import SendVideoController from './modules/qualitycontrol/SendVideoController';
|
33
|
34
|
import RecordingManager from './modules/recording/RecordingManager';
|
|
@@ -282,6 +283,12 @@ export default function JitsiConference(options) {
|
282
|
283
|
this._e2eEncryption = new E2EEncryption(this);
|
283
|
284
|
}
|
284
|
285
|
|
|
286
|
+ if (FeatureFlags.isRunInLiteModeEnabled()) {
|
|
287
|
+ logger.info('Lite mode enabled');
|
|
288
|
+
|
|
289
|
+ this._liteModeContext = new LiteModeContext(this);
|
|
290
|
+ }
|
|
291
|
+
|
285
|
292
|
/**
|
286
|
293
|
* Flag set to <tt>true</tt> when Jicofo sends a presence message indicating that the max audio sender limit has
|
287
|
294
|
* been reached for the call. Once this is set, unmuting audio will be disabled from the client until it gets reset
|
|
@@ -2246,7 +2253,7 @@ JitsiConference.prototype._acceptJvbIncomingCall = function(jingleSession, jingl
|
2246
|
2253
|
this._signalingLayer,
|
2247
|
2254
|
{
|
2248
|
2255
|
...this.options.config,
|
2249
|
|
- enableInsertableStreams: this.isE2EEEnabled()
|
|
2256
|
+ enableInsertableStreams: this.isE2EEEnabled() || FeatureFlags.isRunInLiteModeEnabled()
|
2250
|
2257
|
});
|
2251
|
2258
|
} catch (error) {
|
2252
|
2259
|
GlobalOnErrorHandler.callErrorHandler(error);
|
|
@@ -3005,7 +3012,7 @@ JitsiConference.prototype._acceptP2PIncomingCall = function(jingleSession, jingl
|
3005
|
3012
|
this._signalingLayer,
|
3006
|
3013
|
{
|
3007
|
3014
|
...this.options.config,
|
3008
|
|
- enableInsertableStreams: this.isE2EEEnabled()
|
|
3015
|
+ enableInsertableStreams: this.isE2EEEnabled() || FeatureFlags.isRunInLiteModeEnabled()
|
3009
|
3016
|
});
|
3010
|
3017
|
|
3011
|
3018
|
logger.info('Starting CallStats for P2P connection...');
|
|
@@ -3373,7 +3380,7 @@ JitsiConference.prototype._startP2PSession = function(remoteJid) {
|
3373
|
3380
|
this._signalingLayer,
|
3374
|
3381
|
{
|
3375
|
3382
|
...this.options.config,
|
3376
|
|
- enableInsertableStreams: this.isE2EEEnabled()
|
|
3383
|
+ enableInsertableStreams: this.isE2EEEnabled() || FeatureFlags.isRunInLiteModeEnabled()
|
3377
|
3384
|
});
|
3378
|
3385
|
|
3379
|
3386
|
logger.info('Starting CallStats for P2P connection...');
|