@reactoo/watchtogether-sdk-js 2.8.0-beta.6 → 2.8.0-beta.7
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
|
@@ -3324,7 +3324,7 @@ class RoomSession {
|
|
|
3324
3324
|
const description = transceiverData.feed_description ?? null;
|
|
3325
3325
|
|
|
3326
3326
|
const currentLayer = handle.webrtcStuff?.currentLayers?.get(mid);
|
|
3327
|
-
const currentSubstream = currentLayer
|
|
3327
|
+
const currentSubstream = currentLayer?.substream ?? 0;
|
|
3328
3328
|
|
|
3329
3329
|
return handle.webrtcStuff.pc.getStats(track)
|
|
3330
3330
|
.then(stats => {
|
|
@@ -3487,8 +3487,8 @@ class RoomSession {
|
|
|
3487
3487
|
}
|
|
3488
3488
|
|
|
3489
3489
|
const currentLayer = webrtcStuff?.currentLayers?.get(mid);
|
|
3490
|
-
const currentSubstream = currentLayer
|
|
3491
|
-
const currentTemporal = currentLayer
|
|
3490
|
+
const currentSubstream = currentLayer?.substream ?? 0;
|
|
3491
|
+
const currentTemporal = (currentLayer?.temporal ?? -1) === -1 ? 2 : currentLayer.temporal;
|
|
3492
3492
|
|
|
3493
3493
|
// Initialize quality history for this mid if needed
|
|
3494
3494
|
if (!webrtcStuff.qualityHistory.has(mid)) {
|