UNPKG

@observertc/client-monitor-js

Version:

ObserveRTC Client Integration Javascript Library

1 lines 396 B
import*as t from"../schema/W3cStatsIdentifiers";export class Firefox94StatsAdapter{name="firefox94StatsAdapter";adapt(e){for(const a of e){if(!a)continue;const e=a.type,o=a;e&&"string"==typeof e&&(e!==t.StatsType.inboundRtp&&e!==t.StatsType.outboundRtp&&e!==t.StatsType.remoteInboundRtp&&e!==t.StatsType.remoteOutboundRtp||o.mediaType&&!o.kind&&(o.kind=o.mediaType,delete o.mediaType))}return e}}