UNPKG

msc-node

Version:

mediasoup client side Node.js library

63 lines 2.49 kB
import { MediaSection } from './MediaSection'; import { IceParameters, IceCandidate, DtlsParameters, DtlsRole, PlainRtpParameters } from '../../Transport'; import { ProducerCodecOptions } from '../../Producer'; import { MediaKind, RtpParameters } from '../../RtpParameters'; import { SctpParameters } from '../../SctpParameters'; export declare class RemoteSdp { private _iceParameters?; private readonly _iceCandidates?; private readonly _dtlsParameters?; private readonly _sctpParameters?; private readonly _plainRtpParameters?; private readonly _planB; private readonly _mediaSections; private readonly _midToIndex; private _firstMid?; private readonly _sdpObject; constructor({ iceParameters, iceCandidates, dtlsParameters, sctpParameters, plainRtpParameters, planB }: { iceParameters?: IceParameters; iceCandidates?: IceCandidate[]; dtlsParameters?: DtlsParameters; sctpParameters?: SctpParameters; plainRtpParameters?: PlainRtpParameters; planB?: boolean; }); updateIceParameters(iceParameters: IceParameters): void; updateDtlsRole(role: DtlsRole): void; getNextMediaSectionIdx(): { idx: number; reuseMid?: string; }; send({ offerMediaObject, reuseMid, offerRtpParameters, answerRtpParameters, codecOptions, extmapAllowMixed }: { offerMediaObject: any; reuseMid?: string; offerRtpParameters: RtpParameters; answerRtpParameters: RtpParameters; codecOptions?: ProducerCodecOptions; extmapAllowMixed?: boolean; }): void; receive({ mid, kind, offerRtpParameters, streamId, trackId }: { mid: string; kind: MediaKind; offerRtpParameters: RtpParameters; streamId: string; trackId: string; }): void; disableMediaSection(mid: string): void; closeMediaSection(mid: string): void; planBStopReceiving({ mid, offerRtpParameters }: { mid: string; offerRtpParameters: RtpParameters; }): void; sendSctpAssociation({ offerMediaObject }: { offerMediaObject: any; }): void; receiveSctpAssociation({ oldDataChannelSpec }?: { oldDataChannelSpec?: boolean; }): void; getSdp(): string; _addMediaSection(newMediaSection: MediaSection): void; _replaceMediaSection(newMediaSection: MediaSection, reuseMid?: string): void; _regenerateBundleMids(): void; } //# sourceMappingURL=RemoteSdp.d.ts.map