infobip-rtc
Version:
Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation
41 lines • 867 B
JavaScript
export class IceCandidate {
constructor(stats) {
this._protocol = stats.protocol;
this._ip = stats.ip || stats.address;
this._port = stats.port;
this._type = stats.candidateType;
}
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;
}
toJSON() {
return {
protocol: this._protocol,
ip: this._ip,
port: this._port,
type: this._type
};
}
}
//# sourceMappingURL=IceCandidate.js.map