@reactoo/watchtogether-sdk-js 2.8.57 → 2.8.59

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.8.57",
3
+ "version": "2.8.59",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "dist/watchtogether-sdk.min.js",
6
6
  "module": "dist/watchtogether-sdk.min.js",
@@ -52,8 +52,7 @@
52
52
  "yargs": "^17.7.2"
53
53
  },
54
54
  "dependencies": {
55
- "aws-iot-device-sdk": "^2.2.15",
56
- "aws-iot-device-sdk-v2": "^1.21.1",
55
+ "aws-iot-device-sdk-v2": "^1.23.1",
57
56
  "serialize-error": "9.1.0",
58
57
  "swagger-client": "3.18.0",
59
58
  "webrtc-adapter": "^9.0.1"
@@ -87,7 +87,7 @@ let room = function () {
87
87
  }))
88
88
  },
89
89
 
90
- updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, isLongpolling, isHostAudioOnly, videoCodec, customAttributes, dotAttribute} = {}) => {
90
+ updateRoom: ({roomId, title, description, isPublic, isRouter, recordings, slug, password, maxParticipants, setInstanceType = false, wtChannelId, isHd, isStudioLayout, hasStudioChat, reduceRoomControls, chatRoomId, linkedRoomId, type, disableSync, defaultRegion, isSimulcast, isLongpolling, isHostAudioOnly, videoCodec, customAttributes, dotAttribute, isListed} = {}) => {
91
91
  let _da = dotAttribute
92
92
  ? (Array.isArray(dotAttribute)
93
93
  ? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
@@ -118,6 +118,7 @@ let room = function () {
118
118
  videoCodec,
119
119
  customAttributes,
120
120
  wtChannelId,
121
+ isListed,
121
122
  ..._da,
122
123
  ...(setInstanceType && {instanceType: setInstanceType === true ? this.__instanceType : setInstanceType}),
123
124
  ...(recordings && {recordings})
@@ -1823,10 +1823,15 @@ class RoomSession {
1823
1823
  for (let i in streams) {
1824
1824
  const track = streams[i];
1825
1825
  const mid = track.mid; // source.mid
1826
+ const type = track.type;
1826
1827
  if(track.disabled) {
1827
1828
  continue;
1828
1829
  }
1829
1830
 
1831
+ if(type === 'video' && this._restrictToAudioOnly) {
1832
+ continue;
1833
+ }
1834
+
1830
1835
  if(!this.#shouldSubscribeParticipant(id, userId, description)) {
1831
1836
  continue;
1832
1837
  }