@reactoo/watchtogether-sdk-js 2.6.87 → 2.6.88
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
package/src/modules/wt-room.js
CHANGED
|
@@ -1582,7 +1582,9 @@ class RoomSession {
|
|
|
1582
1582
|
const initialSubstreamBeenSet = !!p.webrtcStuff.initialSimulcastSubstreamBeenSet[mid];
|
|
1583
1583
|
const manualSelectedSubstream = p.webrtcStuff.simulcastSubstreamManualSelect?.[mid];
|
|
1584
1584
|
const defaultSelectedSubstream = typeof this.simulcastDefaultManualSubstream === 'object'
|
|
1585
|
-
? (this.simulcastDefaultManualSubstream[source] !== undefined
|
|
1585
|
+
? (this.simulcastDefaultManualSubstream[source] !== undefined
|
|
1586
|
+
? this.simulcastDefaultManualSubstream[source]
|
|
1587
|
+
: this.simulcastDefaultManualSubstream['default'])
|
|
1586
1588
|
: this.simulcastDefaultManualSubstream;
|
|
1587
1589
|
const simulcastMode = typeof this.simulcastMode === 'object'
|
|
1588
1590
|
? (this.simulcastMode[source] !== undefined ? this.simulcastMode[source] : this.simulcastMode['default'])
|
|
@@ -2970,6 +2972,9 @@ class RoomSession {
|
|
|
2970
2972
|
}
|
|
2971
2973
|
|
|
2972
2974
|
selectSubStream(handleId, substream = 2, source, mid, manual = true) {
|
|
2975
|
+
|
|
2976
|
+
this._log('Select SubStream attempt', handleId, substream, source, mid, 'was this selected by user', manual);
|
|
2977
|
+
|
|
2973
2978
|
let handle = this._getHandle(handleId);
|
|
2974
2979
|
if(!handle) {
|
|
2975
2980
|
return Promise.resolve();
|
|
@@ -2994,9 +2999,11 @@ class RoomSession {
|
|
|
2994
2999
|
clearTimeout(messageTimeoutId);
|
|
2995
3000
|
this._abortController.signal.removeEventListener('abort', abortResponse);
|
|
2996
3001
|
this.ws.removeEventListener('message', parseResponse);
|
|
3002
|
+
|
|
2997
3003
|
if(manual) {
|
|
2998
3004
|
config.simulcastSubstreamManualSelect[mid] = substream;
|
|
2999
3005
|
}
|
|
3006
|
+
|
|
3000
3007
|
resolve({substream, sender});
|
|
3001
3008
|
}
|
|
3002
3009
|
}
|