in src/providers/MeetingProvider/MeetingManager.ts [161:194]
constructor(private meetingManagerConfig: MeetingManagerConfig) {
const {
simulcastEnabled,
logger: configLogger,
logLevel,
postLogConfig,
videoDownlinkBandwidthPolicy,
} = this.meetingManagerConfig;
// We are assigning the values from the `meetingManagerConfig` to preserve backward compatibility.
// Please use `this.meetingManagerConfig` for any values going forward.
if (simulcastEnabled) {
this.simulcastEnabled = simulcastEnabled;
}
if (configLogger) {
this.logger = configLogger;
} else {
this.logLevel = logLevel;
if (postLogConfig) {
this.postLoggerConfig = postLogConfig;
}
}
if (videoDownlinkBandwidthPolicy) {
this.videoDownlinkBandwidthPolicy = videoDownlinkBandwidthPolicy;
}
this.eventDidReceiveRef = {
eventDidReceive: (name: EventName, attributes: EventAttributes) => {
this.publishEventDidReceiveUpdate(name, attributes);
},
};
}