@whereby.com/media 1.23.2 → 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 +4 -4
- package/dist/index.mjs +4 -4
- package/dist/legacy-esm.js +4 -4
- 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);
|
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);
|
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);
|