@reactoo/watchtogether-sdk-js 2.7.47 → 2.7.49

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.7.47",
3
+ "version": "2.7.49",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -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, 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, videoCodec, customAttributes, dotAttribute} = {}) => {
91
91
  let _da = dotAttribute
92
92
  ? (Array.isArray(dotAttribute)
93
93
  ? dotAttribute.reduce((p, cv) => (p[cv.name] = cv.value) && p || p, {})
@@ -112,6 +112,8 @@ let room = function () {
112
112
  type,
113
113
  disableSync,
114
114
  defaultRegion,
115
+ isSimulcast,
116
+ videoCodec,
115
117
  customAttributes,
116
118
  wtChannelId,
117
119
  ..._da,
@@ -1676,8 +1676,8 @@ class RoomSession {
1676
1676
 
1677
1677
  const simulcastConfigForSource = this._findSimulcastConfig(source, this.simulcastSettings);
1678
1678
  const initialSubstreamBeenSet = !!p.webrtcStuff.initialSimulcastSubstreamBeenSet[mid];
1679
- const defaultSelectedSubstream = p.webrtcStuff?.overriddenSimulcastMode[mid]?.defaultSubstream || simulcastConfigForSource?.defaultSubstream;
1680
- const simulcastMode = p.webrtcStuff?.overriddenSimulcastMode[mid]?.mode || simulcastConfigForSource?.mode;
1679
+ const defaultSelectedSubstream = p.webrtcStuff?.overriddenSimulcastMode[mid]?.defaultSubstream ?? simulcastConfigForSource?.defaultSubstream;
1680
+ const simulcastMode = p.webrtcStuff?.overriddenSimulcastMode[mid]?.mode ?? simulcastConfigForSource?.mode;
1681
1681
 
1682
1682
  if((simulcastMode === 'browserControlled')) {
1683
1683
  // do nothing
@@ -1804,8 +1804,8 @@ class RoomSession {
1804
1804
  participantStats.stats.forEach(report => {
1805
1805
 
1806
1806
  const simulcastConfigForSource = this._findSimulcastConfig(participantStats.source, this.simulcastSettings);
1807
- const defaultSelectedSubstream = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.defaultSubstream || simulcastConfigForSource?.defaultSubstream;
1808
- const simulcastMode = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.mode || simulcastConfigForSource?.mode ;
1807
+ const defaultSelectedSubstream = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.defaultSubstream ?? simulcastConfigForSource?.defaultSubstream;
1808
+ const simulcastMode = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.mode ?? simulcastConfigForSource?.mode ;
1809
1809
 
1810
1810
  if(report.type === 'inbound-rtp' && report.kind === 'video') {
1811
1811
  stats.framesPerSecond = report.framesPerSecond || 0;