UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

16 lines 929 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConstantInboundAudioLevelDetectorHandler = void 0; const WebRTCStats_types_1 = require("../../../reporting/WebRTCStats.types"); const WebRtcStatsUtils_1 = require("../../../WebRtcStatsUtils"); const ConstantInboundAudioLevelWarningEvent_1 = require("../../events/ConstantInboundAudioLevelWarningEvent"); class ConstantInboundAudioLevelDetectorHandler { getAudioLevelStats(report) { return (0, WebRtcStatsUtils_1.getStatsWithType)(report, WebRTCStats_types_1.RtcStatsTypes.InboundRtp, WebRTCStats_types_1.MediaType.Audio); } createWarningEvent(type) { return new ConstantInboundAudioLevelWarningEvent_1.ConstantInboundAudioLevelWarningEvent(type); } } exports.ConstantInboundAudioLevelDetectorHandler = ConstantInboundAudioLevelDetectorHandler; //# sourceMappingURL=ConstantInboundAudioLevelDetectorHandler.js.map