@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 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, preferHardwareDecodingOn } = this._features;
3835
- if (!(p2pVp9On || p2pAv1On || redOn || preferHardwareDecodingOn)) {
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 || preferHardwareDecodingOn) {
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, preferHardwareDecodingOn } = this._features;
3810
- if (!(p2pVp9On || p2pAv1On || redOn || preferHardwareDecodingOn)) {
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 || preferHardwareDecodingOn) {
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);
@@ -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, preferHardwareDecodingOn } = this._features;
3810
- if (!(p2pVp9On || p2pAv1On || redOn || preferHardwareDecodingOn)) {
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 || preferHardwareDecodingOn) {
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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@whereby.com/media",
3
3
  "description": "Media library for Whereby",
4
- "version": "1.23.2",
4
+ "version": "1.23.3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {