@observertc/samples-decoder
Version:
ObserveRTC Library for Decoding Samples
30 lines • 1.43 kB
TypeScript
import { Decoder } from "./utils";
import { MediaSourceStats as OutputMediaSourceStats } from "./OutputSamples";
import { AttachmentDecoder } from "./utils";
import { ClientSample_PeerConnectionSample_MediaSourceStats as InputMediaSourceStats } from "./InputSamples";
export declare class MediaSourceStatsDecoder implements Decoder<InputMediaSourceStats, OutputMediaSourceStats | undefined> {
readonly id: string;
private readonly _attachmentsDecoder;
private _visited;
private readonly _timestampDecoder;
private readonly _idDecoder;
private readonly _kindDecoder;
private readonly _trackIdentifierDecoder;
private readonly _audioLevelDecoder;
private readonly _totalAudioEnergyDecoder;
private readonly _totalSamplesDurationDecoder;
private readonly _echoReturnLossDecoder;
private readonly _echoReturnLossEnhancementDecoder;
private readonly _widthDecoder;
private readonly _heightDecoder;
private readonly _framesDecoder;
private readonly _framesPerSecondDecoder;
private _actualValue;
constructor(id: string, _attachmentsDecoder: AttachmentDecoder);
get visited(): boolean;
reset(): void;
decode(input: InputMediaSourceStats): OutputMediaSourceStats | undefined;
get actualValue(): OutputMediaSourceStats | undefined;
set actualValue(sample: OutputMediaSourceStats | undefined);
}
//# sourceMappingURL=MediaSourceDecoder.d.ts.map