@reactoo/watchtogether-sdk-js 2.6.47 → 2.6.48
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/package.json
CHANGED
package/src/modules/wt-room.js
CHANGED
|
@@ -1669,6 +1669,10 @@ class RoomSession {
|
|
|
1669
1669
|
return Promise.resolve(null);
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
1672
|
+
if(config.pc.signalingState === 'stable') {
|
|
1673
|
+
//TODO
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1672
1676
|
return config.pc.setRemoteDescription(jsep)
|
|
1673
1677
|
.then(() => {
|
|
1674
1678
|
config.remoteSdp = jsep.sdp;
|
|
@@ -1686,6 +1690,9 @@ class RoomSession {
|
|
|
1686
1690
|
}
|
|
1687
1691
|
// Done
|
|
1688
1692
|
return true;
|
|
1693
|
+
})
|
|
1694
|
+
.catch((e) => {
|
|
1695
|
+
return Promise.reject({type: 'warning', id: 32, message: 'rtc peer', data: [handleId, e]});
|
|
1689
1696
|
});
|
|
1690
1697
|
} else {
|
|
1691
1698
|
return Promise.reject({type: 'warning', id: 22, message: 'rtc peer', data: [handleId, 'invalid jsep']});
|
|
@@ -1700,11 +1707,6 @@ class RoomSession {
|
|
|
1700
1707
|
}
|
|
1701
1708
|
var config = handle.webrtcStuff;
|
|
1702
1709
|
|
|
1703
|
-
if(config.pc.signalingState === 'stable') {
|
|
1704
|
-
this._log('ICE restart not needed');
|
|
1705
|
-
return;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
1710
|
if (this.handleId === handleId) {
|
|
1709
1711
|
this._log('Performing local ICE restart');
|
|
1710
1712
|
let hasAudio = !!(config.stream && config.stream.getAudioTracks().length > 0);
|