UNPKG

sinch-rtc

Version:

RTC JavaScript/Web SDK

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