@wazo/sdk 0.38.18 → 0.38.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wazo-sdk.js +1 -1
- package/esm/__tests__/web-rtc-client.test.js +3 -1
- package/esm/checker/Checker.js +3 -1
- package/esm/checker/checks/index.js +3 -1
- package/esm/checker/checks/webrtc-transport.js +3 -1
- package/esm/checker/checks/webrtc.js +3 -1
- package/esm/index.js +3 -1
- package/esm/simple/Auth.js +3 -1
- package/esm/simple/Configuration.js +3 -1
- package/esm/simple/Phone.js +3 -1
- package/esm/simple/index.js +3 -1
- package/esm/simple/room/LocalParticipant.js +3 -1
- package/esm/simple/room/Participant.js +3 -1
- package/esm/simple/room/RemoteParticipant.js +3 -1
- package/esm/simple/room/Room.js +3 -1
- package/esm/simple/room/SipRoom.js +3 -1
- package/esm/simple/room/Stream.js +3 -1
- package/esm/simple/room/__tests__/Participant.test.js +3 -1
- package/esm/simple/room/__tests__/RemoteParticipant.test.js +3 -1
- package/esm/simple/utils.js +3 -1
- package/esm/web-rtc-client.js +3 -1
- package/lib/__tests__/web-rtc-client.test.js +3 -1
- package/lib/checker/Checker.js +3 -1
- package/lib/checker/checks/index.js +3 -1
- package/lib/checker/checks/webrtc-transport.js +3 -1
- package/lib/checker/checks/webrtc.js +3 -1
- package/lib/index.js +3 -1
- package/lib/simple/Auth.js +3 -1
- package/lib/simple/Configuration.js +3 -1
- package/lib/simple/Phone.js +3 -1
- package/lib/simple/index.js +3 -1
- package/lib/simple/room/LocalParticipant.js +3 -1
- package/lib/simple/room/Participant.js +3 -1
- package/lib/simple/room/RemoteParticipant.js +3 -1
- package/lib/simple/room/Room.js +3 -1
- package/lib/simple/room/SipRoom.js +3 -1
- package/lib/simple/room/Stream.js +3 -1
- package/lib/simple/room/__tests__/Participant.test.js +3 -1
- package/lib/simple/room/__tests__/RemoteParticipant.test.js +3 -1
- package/lib/simple/utils.js +3 -1
- package/lib/web-rtc-client.js +3 -1
- package/package.json +1 -1
- package/src/web-rtc-client.js +3 -1
|
@@ -7520,7 +7520,9 @@ class WebRTCClient extends Emitter {
|
|
|
7520
7520
|
const audioElement = this.audioElements[sessionId];
|
|
7521
7521
|
const sipSession = this.sipSessions[session.callId];
|
|
7522
7522
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7523
|
-
const
|
|
7523
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7524
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7525
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7524
7526
|
|
|
7525
7527
|
if (!this._isWeb() || !stream) {
|
|
7526
7528
|
return;
|
package/esm/checker/Checker.js
CHANGED
|
@@ -8107,7 +8107,9 @@ class WebRTCClient extends Emitter {
|
|
|
8107
8107
|
const audioElement = this.audioElements[sessionId];
|
|
8108
8108
|
const sipSession = this.sipSessions[session.callId];
|
|
8109
8109
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8110
|
-
const
|
|
8110
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8111
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8112
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8111
8113
|
|
|
8112
8114
|
if (!this._isWeb() || !stream) {
|
|
8113
8115
|
return;
|
|
@@ -8107,7 +8107,9 @@ class WebRTCClient extends Emitter {
|
|
|
8107
8107
|
const audioElement = this.audioElements[sessionId];
|
|
8108
8108
|
const sipSession = this.sipSessions[session.callId];
|
|
8109
8109
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8110
|
-
const
|
|
8110
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8111
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8112
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8111
8113
|
|
|
8112
8114
|
if (!this._isWeb() || !stream) {
|
|
8113
8115
|
return;
|
|
@@ -7520,7 +7520,9 @@ class WebRTCClient extends Emitter {
|
|
|
7520
7520
|
const audioElement = this.audioElements[sessionId];
|
|
7521
7521
|
const sipSession = this.sipSessions[session.callId];
|
|
7522
7522
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7523
|
-
const
|
|
7523
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7524
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7525
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7524
7526
|
|
|
7525
7527
|
if (!this._isWeb() || !stream) {
|
|
7526
7528
|
return;
|
|
@@ -7520,7 +7520,9 @@ class WebRTCClient extends Emitter {
|
|
|
7520
7520
|
const audioElement = this.audioElements[sessionId];
|
|
7521
7521
|
const sipSession = this.sipSessions[session.callId];
|
|
7522
7522
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7523
|
-
const
|
|
7523
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7524
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7525
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7524
7526
|
|
|
7525
7527
|
if (!this._isWeb() || !stream) {
|
|
7526
7528
|
return;
|
package/esm/index.js
CHANGED
|
@@ -8426,7 +8426,9 @@ class WebRTCClient extends Emitter {
|
|
|
8426
8426
|
const audioElement = this.audioElements[sessionId];
|
|
8427
8427
|
const sipSession = this.sipSessions[session.callId];
|
|
8428
8428
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8429
|
-
const
|
|
8429
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8430
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8431
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8430
8432
|
|
|
8431
8433
|
if (!this._isWeb() || !stream) {
|
|
8432
8434
|
return;
|
package/esm/simple/Auth.js
CHANGED
|
@@ -8604,7 +8604,9 @@ class WebRTCClient extends Emitter {
|
|
|
8604
8604
|
const audioElement = this.audioElements[sessionId];
|
|
8605
8605
|
const sipSession = this.sipSessions[session.callId];
|
|
8606
8606
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8607
|
-
const
|
|
8607
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8608
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8609
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8608
8610
|
|
|
8609
8611
|
if (!this._isWeb() || !stream) {
|
|
8610
8612
|
return;
|
|
@@ -8604,7 +8604,9 @@ class WebRTCClient extends Emitter {
|
|
|
8604
8604
|
const audioElement = this.audioElements[sessionId];
|
|
8605
8605
|
const sipSession = this.sipSessions[session.callId];
|
|
8606
8606
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8607
|
-
const
|
|
8607
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8608
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8609
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8608
8610
|
|
|
8609
8611
|
if (!this._isWeb() || !stream) {
|
|
8610
8612
|
return;
|
package/esm/simple/Phone.js
CHANGED
|
@@ -8604,7 +8604,9 @@ class WebRTCClient extends Emitter {
|
|
|
8604
8604
|
const audioElement = this.audioElements[sessionId];
|
|
8605
8605
|
const sipSession = this.sipSessions[session.callId];
|
|
8606
8606
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8607
|
-
const
|
|
8607
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8608
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8609
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8608
8610
|
|
|
8609
8611
|
if (!this._isWeb() || !stream) {
|
|
8610
8612
|
return;
|
package/esm/simple/index.js
CHANGED
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
|
@@ -8604,7 +8604,9 @@ class WebRTCClient extends Emitter {
|
|
|
8604
8604
|
const audioElement = this.audioElements[sessionId];
|
|
8605
8605
|
const sipSession = this.sipSessions[session.callId];
|
|
8606
8606
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8607
|
-
const
|
|
8607
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8608
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8609
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8608
8610
|
|
|
8609
8611
|
if (!this._isWeb() || !stream) {
|
|
8610
8612
|
return;
|
|
@@ -8604,7 +8604,9 @@ class WebRTCClient extends Emitter {
|
|
|
8604
8604
|
const audioElement = this.audioElements[sessionId];
|
|
8605
8605
|
const sipSession = this.sipSessions[session.callId];
|
|
8606
8606
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8607
|
-
const
|
|
8607
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8608
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8609
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8608
8610
|
|
|
8609
8611
|
if (!this._isWeb() || !stream) {
|
|
8610
8612
|
return;
|
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
package/esm/simple/room/Room.js
CHANGED
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
package/esm/simple/utils.js
CHANGED
|
@@ -8935,7 +8935,9 @@ class WebRTCClient extends Emitter {
|
|
|
8935
8935
|
const audioElement = this.audioElements[sessionId];
|
|
8936
8936
|
const sipSession = this.sipSessions[session.callId];
|
|
8937
8937
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8938
|
-
const
|
|
8938
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8939
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8940
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8939
8941
|
|
|
8940
8942
|
if (!this._isWeb() || !stream) {
|
|
8941
8943
|
return;
|
package/esm/web-rtc-client.js
CHANGED
|
@@ -7523,7 +7523,9 @@ class WebRTCClient extends Emitter {
|
|
|
7523
7523
|
const audioElement = this.audioElements[sessionId];
|
|
7524
7524
|
const sipSession = this.sipSessions[session.callId];
|
|
7525
7525
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7526
|
-
const
|
|
7526
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7527
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7528
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7527
7529
|
|
|
7528
7530
|
if (!this._isWeb() || !stream) {
|
|
7529
7531
|
return;
|
|
@@ -7529,7 +7529,9 @@ class WebRTCClient extends Emitter {
|
|
|
7529
7529
|
const audioElement = this.audioElements[sessionId];
|
|
7530
7530
|
const sipSession = this.sipSessions[session.callId];
|
|
7531
7531
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7532
|
-
const
|
|
7532
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7533
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7534
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7533
7535
|
|
|
7534
7536
|
if (!this._isWeb() || !stream) {
|
|
7535
7537
|
return;
|
package/lib/checker/Checker.js
CHANGED
|
@@ -8117,7 +8117,9 @@ class WebRTCClient extends Emitter {
|
|
|
8117
8117
|
const audioElement = this.audioElements[sessionId];
|
|
8118
8118
|
const sipSession = this.sipSessions[session.callId];
|
|
8119
8119
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8120
|
-
const
|
|
8120
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8121
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8122
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8121
8123
|
|
|
8122
8124
|
if (!this._isWeb() || !stream) {
|
|
8123
8125
|
return;
|
|
@@ -8117,7 +8117,9 @@ class WebRTCClient extends Emitter {
|
|
|
8117
8117
|
const audioElement = this.audioElements[sessionId];
|
|
8118
8118
|
const sipSession = this.sipSessions[session.callId];
|
|
8119
8119
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8120
|
-
const
|
|
8120
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8121
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8122
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8121
8123
|
|
|
8122
8124
|
if (!this._isWeb() || !stream) {
|
|
8123
8125
|
return;
|
|
@@ -7529,7 +7529,9 @@ class WebRTCClient extends Emitter {
|
|
|
7529
7529
|
const audioElement = this.audioElements[sessionId];
|
|
7530
7530
|
const sipSession = this.sipSessions[session.callId];
|
|
7531
7531
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7532
|
-
const
|
|
7532
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7533
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7534
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7533
7535
|
|
|
7534
7536
|
if (!this._isWeb() || !stream) {
|
|
7535
7537
|
return;
|
|
@@ -7529,7 +7529,9 @@ class WebRTCClient extends Emitter {
|
|
|
7529
7529
|
const audioElement = this.audioElements[sessionId];
|
|
7530
7530
|
const sipSession = this.sipSessions[session.callId];
|
|
7531
7531
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7532
|
-
const
|
|
7532
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7533
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7534
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7533
7535
|
|
|
7534
7536
|
if (!this._isWeb() || !stream) {
|
|
7535
7537
|
return;
|
package/lib/index.js
CHANGED
|
@@ -8437,7 +8437,9 @@ class WebRTCClient extends Emitter {
|
|
|
8437
8437
|
const audioElement = this.audioElements[sessionId];
|
|
8438
8438
|
const sipSession = this.sipSessions[session.callId];
|
|
8439
8439
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8440
|
-
const
|
|
8440
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8441
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8442
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8441
8443
|
|
|
8442
8444
|
if (!this._isWeb() || !stream) {
|
|
8443
8445
|
return;
|
package/lib/simple/Auth.js
CHANGED
|
@@ -8616,7 +8616,9 @@ class WebRTCClient extends Emitter {
|
|
|
8616
8616
|
const audioElement = this.audioElements[sessionId];
|
|
8617
8617
|
const sipSession = this.sipSessions[session.callId];
|
|
8618
8618
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8619
|
-
const
|
|
8619
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8620
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8621
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8620
8622
|
|
|
8621
8623
|
if (!this._isWeb() || !stream) {
|
|
8622
8624
|
return;
|
|
@@ -8614,7 +8614,9 @@ class WebRTCClient extends Emitter {
|
|
|
8614
8614
|
const audioElement = this.audioElements[sessionId];
|
|
8615
8615
|
const sipSession = this.sipSessions[session.callId];
|
|
8616
8616
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8617
|
-
const
|
|
8617
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8618
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8619
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8618
8620
|
|
|
8619
8621
|
if (!this._isWeb() || !stream) {
|
|
8620
8622
|
return;
|
package/lib/simple/Phone.js
CHANGED
|
@@ -8614,7 +8614,9 @@ class WebRTCClient extends Emitter {
|
|
|
8614
8614
|
const audioElement = this.audioElements[sessionId];
|
|
8615
8615
|
const sipSession = this.sipSessions[session.callId];
|
|
8616
8616
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8617
|
-
const
|
|
8617
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8618
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8619
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8618
8620
|
|
|
8619
8621
|
if (!this._isWeb() || !stream) {
|
|
8620
8622
|
return;
|
package/lib/simple/index.js
CHANGED
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
|
@@ -8614,7 +8614,9 @@ class WebRTCClient extends Emitter {
|
|
|
8614
8614
|
const audioElement = this.audioElements[sessionId];
|
|
8615
8615
|
const sipSession = this.sipSessions[session.callId];
|
|
8616
8616
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8617
|
-
const
|
|
8617
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8618
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8619
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8618
8620
|
|
|
8619
8621
|
if (!this._isWeb() || !stream) {
|
|
8620
8622
|
return;
|
|
@@ -8614,7 +8614,9 @@ class WebRTCClient extends Emitter {
|
|
|
8614
8614
|
const audioElement = this.audioElements[sessionId];
|
|
8615
8615
|
const sipSession = this.sipSessions[session.callId];
|
|
8616
8616
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8617
|
-
const
|
|
8617
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8618
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8619
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8618
8620
|
|
|
8619
8621
|
if (!this._isWeb() || !stream) {
|
|
8620
8622
|
return;
|
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
package/lib/simple/room/Room.js
CHANGED
|
@@ -8947,7 +8947,9 @@ class WebRTCClient extends Emitter {
|
|
|
8947
8947
|
const audioElement = this.audioElements[sessionId];
|
|
8948
8948
|
const sipSession = this.sipSessions[session.callId];
|
|
8949
8949
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8950
|
-
const
|
|
8950
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8951
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8952
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8951
8953
|
|
|
8952
8954
|
if (!this._isWeb() || !stream) {
|
|
8953
8955
|
return;
|
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
|
@@ -8945,7 +8945,9 @@ class WebRTCClient extends Emitter {
|
|
|
8945
8945
|
const audioElement = this.audioElements[sessionId];
|
|
8946
8946
|
const sipSession = this.sipSessions[session.callId];
|
|
8947
8947
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8948
|
-
const
|
|
8948
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8949
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8950
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8949
8951
|
|
|
8950
8952
|
if (!this._isWeb() || !stream) {
|
|
8951
8953
|
return;
|
package/lib/simple/utils.js
CHANGED
|
@@ -8947,7 +8947,9 @@ class WebRTCClient extends Emitter {
|
|
|
8947
8947
|
const audioElement = this.audioElements[sessionId];
|
|
8948
8948
|
const sipSession = this.sipSessions[session.callId];
|
|
8949
8949
|
const removeStream = this.getRemoteStream(sessionId);
|
|
8950
|
-
const
|
|
8950
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
8951
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
8952
|
+
const stream = newStream || removeStream || earlyStream;
|
|
8951
8953
|
|
|
8952
8954
|
if (!this._isWeb() || !stream) {
|
|
8953
8955
|
return;
|
package/lib/web-rtc-client.js
CHANGED
|
@@ -7534,7 +7534,9 @@ class WebRTCClient extends Emitter {
|
|
|
7534
7534
|
const audioElement = this.audioElements[sessionId];
|
|
7535
7535
|
const sipSession = this.sipSessions[session.callId];
|
|
7536
7536
|
const removeStream = this.getRemoteStream(sessionId);
|
|
7537
|
-
const
|
|
7537
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
7538
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
7539
|
+
const stream = newStream || removeStream || earlyStream;
|
|
7538
7540
|
|
|
7539
7541
|
if (!this._isWeb() || !stream) {
|
|
7540
7542
|
return;
|
package/package.json
CHANGED
package/src/web-rtc-client.js
CHANGED
|
@@ -1980,7 +1980,9 @@ export default class WebRTCClient extends Emitter {
|
|
|
1980
1980
|
const audioElement = this.audioElements[sessionId];
|
|
1981
1981
|
const sipSession = this.sipSessions[session.callId];
|
|
1982
1982
|
const removeStream = this.getRemoteStream(sessionId);
|
|
1983
|
-
const
|
|
1983
|
+
const earlyStream = sipSession && sipSession.sessionDescriptionHandler
|
|
1984
|
+
? sipSession.sessionDescriptionHandler.remoteMediaStream : null;
|
|
1985
|
+
const stream = newStream || removeStream || earlyStream;
|
|
1984
1986
|
|
|
1985
1987
|
if (!this._isWeb() || !stream) {
|
|
1986
1988
|
return;
|