20 lines
840 B
TypeScript
Raw Normal View History

2021-02-20 18:55:36 +01:00
export declare class SdpProcessor {
private static readonly kAudioCodecs;
private static readonly kVideoCodecs;
private rtpRemoteChannelMapping;
private rtpLocalChannelMapping;
constructor();
reset(): void;
getRemoteSsrcFromFromMediaId(mediaId: string): number | undefined;
getLocalSsrcFromFromMediaId(mediaId: string): number | undefined;
2021-05-01 23:38:36 +02:00
getLocalMediaIdFromSsrc(ssrc: number): string | undefined;
2021-02-20 18:55:36 +01:00
processIncomingSdp(sdpString: string, _mode: "offer" | "answer"): string;
processOutgoingSdp(sdpString: string, _mode: "offer" | "answer"): string;
private static generateRtpSSrcMapping;
private static patchLocalCodecs;
}
export declare namespace SdpCompressor {
function decompressSdp(sdp: string, mode: number): string;
function compressSdp(sdp: string, mode: number): string;
}