@reactoo/watchtogether-sdk-js 2.6.30 → 2.6.32

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.30",
3
+ "version": "2.6.32",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -2345,7 +2345,7 @@ class RoomSession {
2345
2345
  return Promise.reject({type: 'error', id: 21, message: 'no local id, connect first', data: null})
2346
2346
  }
2347
2347
  let config = handle.webrtcStuff;
2348
- let transceivers = config.pc.getTransceivers()?.filter(t => t.currentDirection !== 'inactive');
2348
+ let transceivers = config.pc?.getTransceivers()?.filter(t => t.currentDirection !== 'inactive');
2349
2349
  let transceiver = null;
2350
2350
  if(source) {
2351
2351
  transceiver = transceivers
@@ -2379,7 +2379,7 @@ class RoomSession {
2379
2379
  return Promise.reject({type: 'error', id: 21, message: 'no local id, connect first', data: null})
2380
2380
  }
2381
2381
  let config = handle.webrtcStuff;
2382
- let transceivers = config.pc.getTransceivers()?.filter(t => t.currentDirection !== 'inactive');
2382
+ let transceivers = config.pc?.getTransceivers()?.filter(t => t.currentDirection !== 'inactive');
2383
2383
  let transceiver = null;
2384
2384
  if(source) {
2385
2385
  transceiver = transceivers