UNPKG

@observertc/samples-decoder

Version:

ObserveRTC Library for Decoding Samples

45 lines 2.47 kB
import { Decoder } from "./utils"; import { IceCandidatePairStats as OutputIceCandidatePairStats } from "./OutputSamples"; import { ClientSample_PeerConnectionSample_IceCandidatePairStats_IceCandidatePairStatsEnum as InputIceCandidatePairState, ClientSample_PeerConnectionSample_IceCandidatePairStats as InputIceCandidatePairStats } from "./InputSamples"; import { AttachmentDecoder } from "./utils"; export declare class IceCandidatePairDecoder implements Decoder<InputIceCandidatePairStats, OutputIceCandidatePairStats | undefined> { readonly id: string; private readonly _attachmentsDecoder; private _visited; private readonly _availableIncomingBitrateDecoder; private readonly _availableOutgoingBitrateDecoder; private readonly _bytesDiscardedOnSendDecoder; private readonly _bytesReceivedDecoder; private readonly _bytesSentDecoder; private readonly _consentRequestsSentDecoder; private readonly _currentRoundTripTimeDecoder; private readonly _lastPacketReceivedTimestampDecoder; private readonly _lastPacketSentTimestampDecoder; private readonly _localCandidateIdDecoder; private readonly _nominatedDecoder; private readonly _packetsDiscardedOnSendDecoder; private readonly _packetsReceivedDecoder; private readonly _packetsSentDecoder; private readonly _remoteCandidateIdDecoder; private readonly _requestsReceivedDecoder; private readonly _requestsSentDecoder; private readonly _responsesReceivedDecoder; private readonly _responsesSentDecoder; private readonly _timestampDecoder; private readonly _totalRoundTripTimeDecoder; private readonly _transportIdDecoder; private readonly _stateDecoder; private _actualValue; constructor(id: string, _attachmentsDecoder: AttachmentDecoder); get visited(): boolean; reset(): void; decode(input: InputIceCandidatePairStats): OutputIceCandidatePairStats | undefined; get actualValue(): OutputIceCandidatePairStats | undefined; set actualValue(sample: OutputIceCandidatePairStats | undefined); } export declare class IceCandidatePairStatsEnumDecoder implements Decoder<InputIceCandidatePairState, Required<OutputIceCandidatePairStats>['state']> { actualValue?: OutputIceCandidatePairStats['state']; reset(): void; decode(state?: InputIceCandidatePairState): Required<OutputIceCandidatePairStats>['state'] | undefined; } //# sourceMappingURL=IceCandidatePairStatsDecoder.d.ts.map