@whereby.com/media 1.23.1 → 1.23.3
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 +5 -5
- package/dist/index.mjs +5 -5
- package/dist/legacy-esm.js +5 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3831,8 +3831,8 @@ class P2pRtcManager {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
_setCodecPreferences(pc) {
|
|
3833
3833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3834
|
-
const { p2pVp9On, p2pAv1On, redOn,
|
|
3835
|
-
if (!(p2pVp9On || p2pAv1On || redOn ||
|
|
3834
|
+
const { p2pVp9On, p2pAv1On, redOn, preferP2pHardwareDecodingOn } = this._features;
|
|
3835
|
+
if (!(p2pVp9On || p2pAv1On || redOn || preferP2pHardwareDecodingOn)) {
|
|
3836
3836
|
return;
|
|
3837
3837
|
}
|
|
3838
3838
|
try {
|
|
@@ -3862,11 +3862,11 @@ class P2pRtcManager {
|
|
|
3862
3862
|
if (videoTransceiver.setCodecPreferences === undefined)
|
|
3863
3863
|
return;
|
|
3864
3864
|
const capabilities = RTCRtpReceiver.getCapabilities("video");
|
|
3865
|
-
if (p2pVp9On || p2pAv1On ||
|
|
3865
|
+
if (p2pVp9On || p2pAv1On || preferP2pHardwareDecodingOn) {
|
|
3866
3866
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3867
3867
|
vp9On: p2pVp9On,
|
|
3868
3868
|
av1On: p2pAv1On,
|
|
3869
|
-
preferHardwareDecodingOn,
|
|
3869
|
+
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3870
3870
|
});
|
|
3871
3871
|
}
|
|
3872
3872
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|
|
@@ -5244,7 +5244,7 @@ class VegaRtcManager {
|
|
|
5244
5244
|
try {
|
|
5245
5245
|
const { routerRtpCapabilities } = yield this._vegaConnection.request("getCapabilities");
|
|
5246
5246
|
if (!this._routerRtpCapabilities) {
|
|
5247
|
-
modifyMediaCapabilities(routerRtpCapabilities, this._features);
|
|
5247
|
+
modifyMediaCapabilities(routerRtpCapabilities, Object.assign(Object.assign({}, this._features), { vp9On: this._features.sfuVp9On }));
|
|
5248
5248
|
this._routerRtpCapabilities = routerRtpCapabilities;
|
|
5249
5249
|
yield ((_a = this._mediasoupDevice) === null || _a === void 0 ? void 0 : _a.load({ routerRtpCapabilities }));
|
|
5250
5250
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -3806,8 +3806,8 @@ class P2pRtcManager {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
_setCodecPreferences(pc) {
|
|
3808
3808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3809
|
-
const { p2pVp9On, p2pAv1On, redOn,
|
|
3810
|
-
if (!(p2pVp9On || p2pAv1On || redOn ||
|
|
3809
|
+
const { p2pVp9On, p2pAv1On, redOn, preferP2pHardwareDecodingOn } = this._features;
|
|
3810
|
+
if (!(p2pVp9On || p2pAv1On || redOn || preferP2pHardwareDecodingOn)) {
|
|
3811
3811
|
return;
|
|
3812
3812
|
}
|
|
3813
3813
|
try {
|
|
@@ -3837,11 +3837,11 @@ class P2pRtcManager {
|
|
|
3837
3837
|
if (videoTransceiver.setCodecPreferences === undefined)
|
|
3838
3838
|
return;
|
|
3839
3839
|
const capabilities = RTCRtpReceiver.getCapabilities("video");
|
|
3840
|
-
if (p2pVp9On || p2pAv1On ||
|
|
3840
|
+
if (p2pVp9On || p2pAv1On || preferP2pHardwareDecodingOn) {
|
|
3841
3841
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3842
3842
|
vp9On: p2pVp9On,
|
|
3843
3843
|
av1On: p2pAv1On,
|
|
3844
|
-
preferHardwareDecodingOn,
|
|
3844
|
+
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3845
3845
|
});
|
|
3846
3846
|
}
|
|
3847
3847
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|
|
@@ -5219,7 +5219,7 @@ class VegaRtcManager {
|
|
|
5219
5219
|
try {
|
|
5220
5220
|
const { routerRtpCapabilities } = yield this._vegaConnection.request("getCapabilities");
|
|
5221
5221
|
if (!this._routerRtpCapabilities) {
|
|
5222
|
-
modifyMediaCapabilities(routerRtpCapabilities, this._features);
|
|
5222
|
+
modifyMediaCapabilities(routerRtpCapabilities, Object.assign(Object.assign({}, this._features), { vp9On: this._features.sfuVp9On }));
|
|
5223
5223
|
this._routerRtpCapabilities = routerRtpCapabilities;
|
|
5224
5224
|
yield ((_a = this._mediasoupDevice) === null || _a === void 0 ? void 0 : _a.load({ routerRtpCapabilities }));
|
|
5225
5225
|
}
|
package/dist/legacy-esm.js
CHANGED
|
@@ -3806,8 +3806,8 @@ class P2pRtcManager {
|
|
|
3806
3806
|
}
|
|
3807
3807
|
_setCodecPreferences(pc) {
|
|
3808
3808
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3809
|
-
const { p2pVp9On, p2pAv1On, redOn,
|
|
3810
|
-
if (!(p2pVp9On || p2pAv1On || redOn ||
|
|
3809
|
+
const { p2pVp9On, p2pAv1On, redOn, preferP2pHardwareDecodingOn } = this._features;
|
|
3810
|
+
if (!(p2pVp9On || p2pAv1On || redOn || preferP2pHardwareDecodingOn)) {
|
|
3811
3811
|
return;
|
|
3812
3812
|
}
|
|
3813
3813
|
try {
|
|
@@ -3837,11 +3837,11 @@ class P2pRtcManager {
|
|
|
3837
3837
|
if (videoTransceiver.setCodecPreferences === undefined)
|
|
3838
3838
|
return;
|
|
3839
3839
|
const capabilities = RTCRtpReceiver.getCapabilities("video");
|
|
3840
|
-
if (p2pVp9On || p2pAv1On ||
|
|
3840
|
+
if (p2pVp9On || p2pAv1On || preferP2pHardwareDecodingOn) {
|
|
3841
3841
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3842
3842
|
vp9On: p2pVp9On,
|
|
3843
3843
|
av1On: p2pAv1On,
|
|
3844
|
-
preferHardwareDecodingOn,
|
|
3844
|
+
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3845
3845
|
});
|
|
3846
3846
|
}
|
|
3847
3847
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|
|
@@ -5219,7 +5219,7 @@ class VegaRtcManager {
|
|
|
5219
5219
|
try {
|
|
5220
5220
|
const { routerRtpCapabilities } = yield this._vegaConnection.request("getCapabilities");
|
|
5221
5221
|
if (!this._routerRtpCapabilities) {
|
|
5222
|
-
modifyMediaCapabilities(routerRtpCapabilities, this._features);
|
|
5222
|
+
modifyMediaCapabilities(routerRtpCapabilities, Object.assign(Object.assign({}, this._features), { vp9On: this._features.sfuVp9On }));
|
|
5223
5223
|
this._routerRtpCapabilities = routerRtpCapabilities;
|
|
5224
5224
|
yield ((_a = this._mediasoupDevice) === null || _a === void 0 ? void 0 : _a.load({ routerRtpCapabilities }));
|
|
5225
5225
|
}
|