UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

81 lines 1.96 kB
export class IceCandidate { constructor(stats, mediaType) { this._protocol = stats.protocol; this._ip = stats.ip || stats.address; this._port = stats.port; this._type = stats.candidateType; this._relatedAddress = stats.relatedAddress; this._relatedPort = stats.relatedPort; this._relayProtocol = stats.relayProtocol; this._url = stats.url; this._mediaType = mediaType; } get protocol() { return this._protocol; } set protocol(value) { this._protocol = value; } get ip() { return this._ip; } set ip(value) { this._ip = value; } get port() { return this._port; } set port(value) { this._port = value; } get type() { return this._type; } set type(value) { this._type = value; } get relatedAddress() { return this._relatedAddress; } set relatedAddress(value) { this._relatedAddress = value; } get relatedPort() { return this._relatedPort; } set relatedPort(value) { this._relatedPort = value; } get relayProtocol() { return this._relayProtocol; } set relayProtocol(value) { this._relayProtocol = value; } get url() { return this._url; } set url(value) { this._url = value; } get mediaType() { return this._mediaType; } set mediaType(value) { this._mediaType = value; } toJSON() { return { protocol: this._protocol, ip: this._ip, port: this._port, type: this._type, relatedAddress: this._relatedAddress, relatedPort: this._relatedPort, relayProtocol: this._relayProtocol, url: this._url, mediaType: this._mediaType, }; } } //# sourceMappingURL=IceCandidate.js.map