@whereby.com/media 2.7.2 → 2.7.4

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
@@ -2984,10 +2984,11 @@ class P2pRtcManager {
2984
2984
  return streamIds.length === 0 ? null : this.localStreams[streamIds[0]];
2985
2985
  }
2986
2986
  _transformIncomingSdp(original) {
2987
- return { type: original.type, sdp: original.sdpU };
2987
+ const sdp = original.sdp ? original.sdp : original.sdpU;
2988
+ return { type: original.type, sdp };
2988
2989
  }
2989
2990
  _transformOutgoingSdp(original) {
2990
- return { type: original.type, sdpU: original.sdp };
2991
+ return { type: original.type, sdpU: original.sdp, sdp: original.sdp };
2991
2992
  }
2992
2993
  _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }) {
2993
2994
  if (!peerConnectionId) {
package/dist/index.d.cts CHANGED
@@ -382,6 +382,7 @@ type RtcEvents = {
382
382
  remote_stream_track_removed: void;
383
383
  };
384
384
  type UnifiedPlanSDP = {
385
+ sdp: string;
385
386
  sdpU: string;
386
387
  type: RTCSdpType;
387
388
  };
package/dist/index.d.mts CHANGED
@@ -382,6 +382,7 @@ type RtcEvents = {
382
382
  remote_stream_track_removed: void;
383
383
  };
384
384
  type UnifiedPlanSDP = {
385
+ sdp: string;
385
386
  sdpU: string;
386
387
  type: RTCSdpType;
387
388
  };
package/dist/index.d.ts CHANGED
@@ -382,6 +382,7 @@ type RtcEvents = {
382
382
  remote_stream_track_removed: void;
383
383
  };
384
384
  type UnifiedPlanSDP = {
385
+ sdp: string;
385
386
  sdpU: string;
386
387
  type: RTCSdpType;
387
388
  };
package/dist/index.mjs CHANGED
@@ -2963,10 +2963,11 @@ class P2pRtcManager {
2963
2963
  return streamIds.length === 0 ? null : this.localStreams[streamIds[0]];
2964
2964
  }
2965
2965
  _transformIncomingSdp(original) {
2966
- return { type: original.type, sdp: original.sdpU };
2966
+ const sdp = original.sdp ? original.sdp : original.sdpU;
2967
+ return { type: original.type, sdp };
2967
2968
  }
2968
2969
  _transformOutgoingSdp(original) {
2969
- return { type: original.type, sdpU: original.sdp };
2970
+ return { type: original.type, sdpU: original.sdp, sdp: original.sdp };
2970
2971
  }
2971
2972
  _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }) {
2972
2973
  if (!peerConnectionId) {
@@ -2963,10 +2963,11 @@ class P2pRtcManager {
2963
2963
  return streamIds.length === 0 ? null : this.localStreams[streamIds[0]];
2964
2964
  }
2965
2965
  _transformIncomingSdp(original) {
2966
- return { type: original.type, sdp: original.sdpU };
2966
+ const sdp = original.sdp ? original.sdp : original.sdpU;
2967
+ return { type: original.type, sdp };
2967
2968
  }
2968
2969
  _transformOutgoingSdp(original) {
2969
- return { type: original.type, sdpU: original.sdp };
2970
+ return { type: original.type, sdpU: original.sdp, sdp: original.sdp };
2970
2971
  }
2971
2972
  _createSession({ clientId, initialBandwidth, isOfferer, peerConnectionId, shouldAddLocalVideo, }) {
2972
2973
  if (!peerConnectionId) {
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": "2.7.2",
4
+ "version": "2.7.4",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {
@@ -62,9 +62,9 @@
62
62
  "process": "^0.11.10",
63
63
  "typescript": "^5.8.3",
64
64
  "@whereby.com/eslint-config": "0.1.0",
65
+ "@whereby.com/jest-config": "0.1.0",
65
66
  "@whereby.com/prettier-config": "0.1.0",
66
67
  "@whereby.com/rollup-config": "0.1.1",
67
- "@whereby.com/jest-config": "0.1.0",
68
68
  "@whereby.com/tsconfig": "0.1.0"
69
69
  },
70
70
  "engines": {