@reactoo/watchtogether-sdk-js 2.5.0 → 2.5.1

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.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -161,6 +161,7 @@ let roomSession = function ({roomId, pinHash, isTalkback, isMonitor, isInstructo
161
161
  } else if (msg.action === 'user_update_displayname' || msg.action === 'user_update_avatar' || msg.action === 'user_update_customattributes' || msg.action === 'user_update_privateattributes') {
162
162
  emitter.emit('userUpdate', msg.text);
163
163
  } else if (msg.action === 'observer_connecting' || msg.action === 'talkback_connecting' || msg.action === 'instructor_connecting') {
164
+
164
165
  this.setRoomVars(null, msg.action === 'observer_connecting').catch(e => {
165
166
  room._log('Setting observers failed, this will cause issues', e);
166
167
  });
@@ -681,6 +681,7 @@ class RoomSession {
681
681
  stream: null,
682
682
  track: null,
683
683
  adding: false,
684
+ constructId: this.constructId,
684
685
  hasAudioTrack: false,
685
686
  hasVideoTrack: false
686
687
  });
@@ -1269,6 +1270,7 @@ class RoomSession {
1269
1270
  userId: handle.userId,
1270
1271
  stream: config.stream,
1271
1272
  track: event.track,
1273
+ constructId: this.constructId,
1272
1274
  adding: true,
1273
1275
  hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),
1274
1276
  hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)
@@ -1302,6 +1304,7 @@ class RoomSession {
1302
1304
  userId: handle.userId,
1303
1305
  stream: config.stream,
1304
1306
  track: ev.target,
1307
+ constructId: this.constructId,
1305
1308
  adding: false,
1306
1309
  hasAudioTrack: !!(config.stream && config.stream.getAudioTracks().length),
1307
1310
  hasVideoTrack: !!(config.stream && config.stream.getVideoTracks().length)