|
@@ -47,26 +47,28 @@ export default class Rtcp extends EventEmitter {
|
|
);
|
|
);
|
|
E(this, "onIceConnectionStateChange", ()=>{
|
|
E(this, "onIceConnectionStateChange", ()=>{
|
|
if (!!this.connection)
|
|
if (!!this.connection)
|
|
- switch (logger.info(`iceConnectionState: ${this.connection.iceConnectionState}`),
|
|
|
|
- this.connection.iceConnectionState) {
|
|
|
|
- case "connected":
|
|
|
|
|
|
+ {
|
|
|
|
+ logger.info(`iceConnectionState: ${this.connection.iceConnectionState}`);
|
|
|
|
+ switch (this.connection.iceConnectionState) {
|
|
|
|
+ case "connected":
|
|
{
|
|
{
|
|
this.connected = !0;
|
|
this.connected = !0;
|
|
break
|
|
break
|
|
}
|
|
}
|
|
- case "disconnected":
|
|
|
|
|
|
+ case "disconnected":
|
|
{
|
|
{
|
|
this.connected = !1,
|
|
this.connected = !1,
|
|
this.emit("rtcDisconnected");
|
|
this.emit("rtcDisconnected");
|
|
break
|
|
break
|
|
}
|
|
}
|
|
- case "failed":
|
|
|
|
|
|
+ case "failed":
|
|
{
|
|
{
|
|
this.emit("rtcDisconnected"),
|
|
this.emit("rtcDisconnected"),
|
|
this.connected = !1;
|
|
this.connected = !1;
|
|
break
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ }
|
|
}
|
|
}
|
|
);
|
|
);
|
|
E(this, "setRemoteDescription", async(e,t)=>{
|
|
E(this, "setRemoteDescription", async(e,t)=>{
|