react-native-webrtc
Version:
WebRTC for React Native
26 lines • 757 B
JavaScript
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
export default class RTCSessionDescription {
constructor() {
let info = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
type: null,
sdp: ''
};
_defineProperty(this, "_sdp", void 0);
_defineProperty(this, "_type", void 0);
this._sdp = info.sdp;
this._type = info.type;
}
get sdp() {
return this._sdp;
}
get type() {
return this._type;
}
toJSON() {
return {
sdp: this._sdp,
type: this._type
};
}
}
//# sourceMappingURL=RTCSessionDescription.js.map