@reactoo/watchtogether-sdk-js 2.7.46 → 2.7.48
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
|
@@ -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
|
|
1680
|
-
const simulcastMode = p.webrtcStuff?.overriddenSimulcastMode[mid]?.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,7 +1804,8 @@ class RoomSession {
|
|
|
1804
1804
|
participantStats.stats.forEach(report => {
|
|
1805
1805
|
|
|
1806
1806
|
const simulcastConfigForSource = this._findSimulcastConfig(participantStats.source, this.simulcastSettings);
|
|
1807
|
-
const
|
|
1807
|
+
const defaultSelectedSubstream = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.defaultSubstream ?? simulcastConfigForSource?.defaultSubstream;
|
|
1808
|
+
const simulcastMode = handle.webrtcStuff?.overriddenSimulcastMode[participantStats.mid]?.mode ?? simulcastConfigForSource?.mode ;
|
|
1808
1809
|
|
|
1809
1810
|
if(report.type === 'inbound-rtp' && report.kind === 'video') {
|
|
1810
1811
|
stats.framesPerSecond = report.framesPerSecond || 0;
|
|
@@ -1828,6 +1829,7 @@ class RoomSession {
|
|
|
1828
1829
|
}
|
|
1829
1830
|
|
|
1830
1831
|
stats.selectedSubstream = handle.webrtcStuff.selectedSubstream[participantStats.mid];
|
|
1832
|
+
stats.desiredSubstream = defaultSelectedSubstream;
|
|
1831
1833
|
stats.simulcastMode = simulcastMode;
|
|
1832
1834
|
|
|
1833
1835
|
});
|