UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

39 lines 3.72 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CallQualityDetectorsFactory = void 0; const CallQualityWarningMediaStreamType_1 = require("../CallQualityWarningMediaStreamType"); const HighRemoteInboundRttDetector_1 = require("./HighRemoteInboundRttDetector"); const HighInboundJitterDetector_1 = require("./HighInboundJitterDetector"); const MissingMediaStreamWarningDetector_1 = require("./MissingMediaStreamWarningDetector"); const HighInboundPacketLossDetector_1 = require("./HighInboundPacketLossDetector"); const ConstantAudioLevelDetector_1 = require("./constant/ConstantAudioLevelDetector"); const CallQualityWarningController_1 = require("../CallQualityWarningController"); const ConstantInboundAudioLevelDetectorHandler_1 = require("./constant/ConstantInboundAudioLevelDetectorHandler"); const ConstantOutboundAudioLevelDetectorHandler_1 = require("./constant/ConstantOutboundAudioLevelDetectorHandler"); const ZeroAudioLevelDetector_1 = require("./zero/ZeroAudioLevelDetector"); const ZeroInboundAudioLevelDetectorHandler_1 = require("./zero/ZeroInboundAudioLevelDetectorHandler"); const ZeroOutboundAudioLevelDetectorHandler_1 = require("./zero/ZeroOutboundAudioLevelDetectorHandler"); class CallQualityDetectorsFactory { constructor(fanout) { this.fanout = fanout; } createMissingMediaStreamDetector() { return new MissingMediaStreamWarningDetector_1.MissingMediaStreamWarningDetector(this.fanout); } createWebRtcStatsDetectors() { return [ new HighRemoteInboundRttDetector_1.HighRemoteInboundRttDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Audio, this.fanout), new HighRemoteInboundRttDetector_1.HighRemoteInboundRttDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Video, this.fanout), new HighInboundJitterDetector_1.HighInboundJitterDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Audio, this.fanout), new HighInboundJitterDetector_1.HighInboundJitterDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Video, this.fanout), new HighInboundPacketLossDetector_1.HighInboundPacketLossDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Audio, this.fanout), new HighInboundPacketLossDetector_1.HighInboundPacketLossDetector(CallQualityWarningMediaStreamType_1.CallQualityWarningMediaStreamType.Video, this.fanout), new ConstantAudioLevelDetector_1.ConstantAudioLevelDetector(CallQualityWarningController_1.CallQualityWarningController.WEBRTC_FETCH_STATS_INTERVAL_MS, new ConstantInboundAudioLevelDetectorHandler_1.ConstantInboundAudioLevelDetectorHandler(), this.fanout), new ConstantAudioLevelDetector_1.ConstantAudioLevelDetector(CallQualityWarningController_1.CallQualityWarningController.WEBRTC_FETCH_STATS_INTERVAL_MS, new ConstantOutboundAudioLevelDetectorHandler_1.ConstantOutboundAudioLevelDetectorHandler(), this.fanout), new ZeroAudioLevelDetector_1.ZeroAudioLevelDetector(CallQualityWarningController_1.CallQualityWarningController.WEBRTC_FETCH_STATS_INTERVAL_MS, new ZeroInboundAudioLevelDetectorHandler_1.ZeroInboundAudioLevelDetectorHandler(), this.fanout), new ZeroAudioLevelDetector_1.ZeroAudioLevelDetector(CallQualityWarningController_1.CallQualityWarningController.WEBRTC_FETCH_STATS_INTERVAL_MS, new ZeroOutboundAudioLevelDetectorHandler_1.ZeroOutboundAudioLevelDetectorHandler(), this.fanout), ]; } } exports.CallQualityDetectorsFactory = CallQualityDetectorsFactory; //# sourceMappingURL=CallQualityDetectorsFactory.js.map