@whereby.com/media 1.5.1 → 1.6.0
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/dist/index.cjs +6 -2
- package/dist/index.mjs +6 -2
- package/dist/legacy-esm.js +6 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5827,7 +5827,7 @@ class VegaRtcManager {
|
|
|
5827
5827
|
this._syncIncomingStreamsWithPWA(clientId);
|
|
5828
5828
|
}
|
|
5829
5829
|
updateStreamResolution(streamId, _ignored, { width, height, }) {
|
|
5830
|
-
var _a, _b, _c, _d;
|
|
5830
|
+
var _a, _b, _c, _d, _e;
|
|
5831
5831
|
logger$1.info("updateStreamResolution()", { streamId, width, height });
|
|
5832
5832
|
const consumerId = this._streamIdToVideoConsumerId.get(streamId);
|
|
5833
5833
|
const consumer = this._consumers.get(consumerId);
|
|
@@ -5856,10 +5856,14 @@ class VegaRtcManager {
|
|
|
5856
5856
|
if (numberOfActiveVideos < 4 && maxSide > 300 && spatialLayer === 0) {
|
|
5857
5857
|
spatialLayer = 1;
|
|
5858
5858
|
}
|
|
5859
|
+
if (((_d = this._features) === null || _d === void 0 ? void 0 : _d.uncappedSingleRemoteVideoOn) && numberOfActiveVideos === 1) {
|
|
5860
|
+
spatialLayer = 2;
|
|
5861
|
+
temporalLayer = numberOfTemporalLayers - 1;
|
|
5862
|
+
}
|
|
5859
5863
|
if (consumer.appData.spatialLayer !== spatialLayer || consumer.appData.temporalLayer !== temporalLayer) {
|
|
5860
5864
|
consumer.appData.spatialLayer = spatialLayer;
|
|
5861
5865
|
consumer.appData.temporalLayer = temporalLayer;
|
|
5862
|
-
(
|
|
5866
|
+
(_e = this._vegaConnection) === null || _e === void 0 ? void 0 : _e.message("setConsumersPreferredLayers", {
|
|
5863
5867
|
consumerIds: [consumerId],
|
|
5864
5868
|
spatialLayer,
|
|
5865
5869
|
temporalLayer,
|
package/dist/index.mjs
CHANGED
|
@@ -5806,7 +5806,7 @@ class VegaRtcManager {
|
|
|
5806
5806
|
this._syncIncomingStreamsWithPWA(clientId);
|
|
5807
5807
|
}
|
|
5808
5808
|
updateStreamResolution(streamId, _ignored, { width, height, }) {
|
|
5809
|
-
var _a, _b, _c, _d;
|
|
5809
|
+
var _a, _b, _c, _d, _e;
|
|
5810
5810
|
logger$1.info("updateStreamResolution()", { streamId, width, height });
|
|
5811
5811
|
const consumerId = this._streamIdToVideoConsumerId.get(streamId);
|
|
5812
5812
|
const consumer = this._consumers.get(consumerId);
|
|
@@ -5835,10 +5835,14 @@ class VegaRtcManager {
|
|
|
5835
5835
|
if (numberOfActiveVideos < 4 && maxSide > 300 && spatialLayer === 0) {
|
|
5836
5836
|
spatialLayer = 1;
|
|
5837
5837
|
}
|
|
5838
|
+
if (((_d = this._features) === null || _d === void 0 ? void 0 : _d.uncappedSingleRemoteVideoOn) && numberOfActiveVideos === 1) {
|
|
5839
|
+
spatialLayer = 2;
|
|
5840
|
+
temporalLayer = numberOfTemporalLayers - 1;
|
|
5841
|
+
}
|
|
5838
5842
|
if (consumer.appData.spatialLayer !== spatialLayer || consumer.appData.temporalLayer !== temporalLayer) {
|
|
5839
5843
|
consumer.appData.spatialLayer = spatialLayer;
|
|
5840
5844
|
consumer.appData.temporalLayer = temporalLayer;
|
|
5841
|
-
(
|
|
5845
|
+
(_e = this._vegaConnection) === null || _e === void 0 ? void 0 : _e.message("setConsumersPreferredLayers", {
|
|
5842
5846
|
consumerIds: [consumerId],
|
|
5843
5847
|
spatialLayer,
|
|
5844
5848
|
temporalLayer,
|
package/dist/legacy-esm.js
CHANGED
|
@@ -5806,7 +5806,7 @@ class VegaRtcManager {
|
|
|
5806
5806
|
this._syncIncomingStreamsWithPWA(clientId);
|
|
5807
5807
|
}
|
|
5808
5808
|
updateStreamResolution(streamId, _ignored, { width, height, }) {
|
|
5809
|
-
var _a, _b, _c, _d;
|
|
5809
|
+
var _a, _b, _c, _d, _e;
|
|
5810
5810
|
logger$1.info("updateStreamResolution()", { streamId, width, height });
|
|
5811
5811
|
const consumerId = this._streamIdToVideoConsumerId.get(streamId);
|
|
5812
5812
|
const consumer = this._consumers.get(consumerId);
|
|
@@ -5835,10 +5835,14 @@ class VegaRtcManager {
|
|
|
5835
5835
|
if (numberOfActiveVideos < 4 && maxSide > 300 && spatialLayer === 0) {
|
|
5836
5836
|
spatialLayer = 1;
|
|
5837
5837
|
}
|
|
5838
|
+
if (((_d = this._features) === null || _d === void 0 ? void 0 : _d.uncappedSingleRemoteVideoOn) && numberOfActiveVideos === 1) {
|
|
5839
|
+
spatialLayer = 2;
|
|
5840
|
+
temporalLayer = numberOfTemporalLayers - 1;
|
|
5841
|
+
}
|
|
5838
5842
|
if (consumer.appData.spatialLayer !== spatialLayer || consumer.appData.temporalLayer !== temporalLayer) {
|
|
5839
5843
|
consumer.appData.spatialLayer = spatialLayer;
|
|
5840
5844
|
consumer.appData.temporalLayer = temporalLayer;
|
|
5841
|
-
(
|
|
5845
|
+
(_e = this._vegaConnection) === null || _e === void 0 ? void 0 : _e.message("setConsumersPreferredLayers", {
|
|
5842
5846
|
consumerIds: [consumerId],
|
|
5843
5847
|
spatialLayer,
|
|
5844
5848
|
temporalLayer,
|