@whereby.com/media 1.23.3 → 1.24.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 +3 -2
- package/dist/index.mjs +3 -2
- package/dist/legacy-esm.js +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2676,10 +2676,11 @@ function sortCodecsByPowerEfficiency(codecs) {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
function sortCodecs(codecs, features) {
|
|
2678
2678
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2679
|
+
codecs = sortCodecsByMimeType(codecs, features);
|
|
2679
2680
|
if (features.preferHardwareDecodingOn) {
|
|
2680
2681
|
codecs = yield sortCodecsByPowerEfficiency(codecs);
|
|
2681
2682
|
}
|
|
2682
|
-
return
|
|
2683
|
+
return codecs;
|
|
2683
2684
|
});
|
|
2684
2685
|
}
|
|
2685
2686
|
|
|
@@ -3866,7 +3867,7 @@ class P2pRtcManager {
|
|
|
3866
3867
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3867
3868
|
vp9On: p2pVp9On,
|
|
3868
3869
|
av1On: p2pAv1On,
|
|
3869
|
-
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3870
|
+
preferHardwareDecodingOn: p2pVp9On || preferP2pHardwareDecodingOn,
|
|
3870
3871
|
});
|
|
3871
3872
|
}
|
|
3872
3873
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|
package/dist/index.mjs
CHANGED
|
@@ -2651,10 +2651,11 @@ function sortCodecsByPowerEfficiency(codecs) {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
function sortCodecs(codecs, features) {
|
|
2653
2653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2654
|
+
codecs = sortCodecsByMimeType(codecs, features);
|
|
2654
2655
|
if (features.preferHardwareDecodingOn) {
|
|
2655
2656
|
codecs = yield sortCodecsByPowerEfficiency(codecs);
|
|
2656
2657
|
}
|
|
2657
|
-
return
|
|
2658
|
+
return codecs;
|
|
2658
2659
|
});
|
|
2659
2660
|
}
|
|
2660
2661
|
|
|
@@ -3841,7 +3842,7 @@ class P2pRtcManager {
|
|
|
3841
3842
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3842
3843
|
vp9On: p2pVp9On,
|
|
3843
3844
|
av1On: p2pAv1On,
|
|
3844
|
-
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3845
|
+
preferHardwareDecodingOn: p2pVp9On || preferP2pHardwareDecodingOn,
|
|
3845
3846
|
});
|
|
3846
3847
|
}
|
|
3847
3848
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|
package/dist/legacy-esm.js
CHANGED
|
@@ -2651,10 +2651,11 @@ function sortCodecsByPowerEfficiency(codecs) {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
function sortCodecs(codecs, features) {
|
|
2653
2653
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2654
|
+
codecs = sortCodecsByMimeType(codecs, features);
|
|
2654
2655
|
if (features.preferHardwareDecodingOn) {
|
|
2655
2656
|
codecs = yield sortCodecsByPowerEfficiency(codecs);
|
|
2656
2657
|
}
|
|
2657
|
-
return
|
|
2658
|
+
return codecs;
|
|
2658
2659
|
});
|
|
2659
2660
|
}
|
|
2660
2661
|
|
|
@@ -3841,7 +3842,7 @@ class P2pRtcManager {
|
|
|
3841
3842
|
capabilities.codecs = yield sortCodecs(capabilities.codecs, {
|
|
3842
3843
|
vp9On: p2pVp9On,
|
|
3843
3844
|
av1On: p2pAv1On,
|
|
3844
|
-
preferHardwareDecodingOn: preferP2pHardwareDecodingOn,
|
|
3845
|
+
preferHardwareDecodingOn: p2pVp9On || preferP2pHardwareDecodingOn,
|
|
3845
3846
|
});
|
|
3846
3847
|
}
|
|
3847
3848
|
videoTransceiver.setCodecPreferences(capabilities.codecs);
|