UNPKG

react-native-webrtc

Version:
31 lines (24 loc) 585 B
export interface RTCSessionDescriptionInit { sdp: string; type: string | null; } export default class RTCSessionDescription { _sdp: string; _type: string | null; constructor(info: RTCSessionDescriptionInit = { type: null, sdp: '' }) { this._sdp = info.sdp; this._type = info.type; } get sdp(): string { return this._sdp; } get type(): string | null { return this._type; } toJSON(): RTCSessionDescriptionInit { return { sdp: this._sdp, type: this._type }; } }