@reactoo/watchtogether-sdk-js 2.6.46 → 2.6.47

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.6.46",
3
+ "version": "2.6.47",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -1700,6 +1700,11 @@ class RoomSession {
1700
1700
  }
1701
1701
  var config = handle.webrtcStuff;
1702
1702
 
1703
+ if(config.pc.signalingState === 'stable') {
1704
+ this._log('ICE restart not needed');
1705
+ return;
1706
+ }
1707
+
1703
1708
  if (this.handleId === handleId) {
1704
1709
  this._log('Performing local ICE restart');
1705
1710
  let hasAudio = !!(config.stream && config.stream.getAudioTracks().length > 0);