@whereby.com/media 10.0.1 → 11.0.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 CHANGED
@@ -244,12 +244,6 @@ const rtcStats = {
244
244
  value,
245
245
  });
246
246
  },
247
- sendAudioMuted: (muted) => {
248
- rtcStats.sendEvent("audio_muted", { muted });
249
- },
250
- sendVideoMuted: (muted) => {
251
- rtcStats.sendEvent("video_muted", { muted });
252
- },
253
247
  server,
254
248
  };
255
249
 
@@ -2676,12 +2670,6 @@ class P2pRtcManager {
2676
2670
  }),
2677
2671
  ];
2678
2672
  }
2679
- sendAudioMutedStats(muted) {
2680
- rtcStats.sendEvent("audio_muted", { muted });
2681
- }
2682
- sendVideoMutedStats(muted) {
2683
- rtcStats.sendEvent("video_muted", { muted });
2684
- }
2685
2673
  sendStatsCustomEvent(eventName, data) {
2686
2674
  rtcStats.sendEvent(eventName, data);
2687
2675
  }
@@ -5475,12 +5463,6 @@ class VegaRtcManager {
5475
5463
  this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
5476
5464
  this._qualityMonitor.close();
5477
5465
  }
5478
- sendAudioMutedStats(muted) {
5479
- rtcStats.sendEvent("audio_muted", { muted });
5480
- }
5481
- sendVideoMutedStats(muted) {
5482
- rtcStats.sendEvent("video_muted", { muted });
5483
- }
5484
5466
  sendStatsCustomEvent(eventName, data) {
5485
5467
  rtcStats.sendEvent(eventName, data);
5486
5468
  }
package/dist/index.d.cts CHANGED
@@ -1702,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
1702
1702
  close(): void;
1703
1703
  disconnectAll(): void;
1704
1704
  setupSocketListeners(): void;
1705
- sendAudioMutedStats(muted: boolean): void;
1706
- sendVideoMutedStats(muted: boolean): void;
1707
1705
  sendStatsCustomEvent(eventName: string, data: any): void;
1708
1706
  rtcStatsConnect(): void;
1709
1707
  rtcStatsDisconnect(): void;
@@ -1785,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
1785
1783
 
1786
1784
  declare const rtcStats: {
1787
1785
  sendEvent: (type: any, value: any) => void;
1788
- sendAudioMuted: (muted: boolean) => void;
1789
- sendVideoMuted: (muted: boolean) => void;
1790
1786
  server: {
1791
1787
  connected: boolean;
1792
1788
  attemptedConnectedAtLeastOnce: boolean;
@@ -2104,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
2104
2100
  }): void;
2105
2101
  close(): void;
2106
2102
  disconnectAll(): void;
2107
- sendAudioMutedStats(muted: boolean): void;
2108
- sendVideoMutedStats(muted: boolean): void;
2109
2103
  sendStatsCustomEvent(eventName: string, data?: any): void;
2110
2104
  rtcStatsConnect(): void;
2111
2105
  rtcStatsDisconnect(): void;
package/dist/index.d.mts CHANGED
@@ -1702,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
1702
1702
  close(): void;
1703
1703
  disconnectAll(): void;
1704
1704
  setupSocketListeners(): void;
1705
- sendAudioMutedStats(muted: boolean): void;
1706
- sendVideoMutedStats(muted: boolean): void;
1707
1705
  sendStatsCustomEvent(eventName: string, data: any): void;
1708
1706
  rtcStatsConnect(): void;
1709
1707
  rtcStatsDisconnect(): void;
@@ -1785,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
1785
1783
 
1786
1784
  declare const rtcStats: {
1787
1785
  sendEvent: (type: any, value: any) => void;
1788
- sendAudioMuted: (muted: boolean) => void;
1789
- sendVideoMuted: (muted: boolean) => void;
1790
1786
  server: {
1791
1787
  connected: boolean;
1792
1788
  attemptedConnectedAtLeastOnce: boolean;
@@ -2104,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
2104
2100
  }): void;
2105
2101
  close(): void;
2106
2102
  disconnectAll(): void;
2107
- sendAudioMutedStats(muted: boolean): void;
2108
- sendVideoMutedStats(muted: boolean): void;
2109
2103
  sendStatsCustomEvent(eventName: string, data?: any): void;
2110
2104
  rtcStatsConnect(): void;
2111
2105
  rtcStatsDisconnect(): void;
package/dist/index.d.ts CHANGED
@@ -1702,8 +1702,6 @@ declare class P2pRtcManager implements RtcManager {
1702
1702
  close(): void;
1703
1703
  disconnectAll(): void;
1704
1704
  setupSocketListeners(): void;
1705
- sendAudioMutedStats(muted: boolean): void;
1706
- sendVideoMutedStats(muted: boolean): void;
1707
1705
  sendStatsCustomEvent(eventName: string, data: any): void;
1708
1706
  rtcStatsConnect(): void;
1709
1707
  rtcStatsDisconnect(): void;
@@ -1785,8 +1783,6 @@ declare function setVideoBandwidthUsingSetParameters(pc: RTCPeerConnection, band
1785
1783
 
1786
1784
  declare const rtcStats: {
1787
1785
  sendEvent: (type: any, value: any) => void;
1788
- sendAudioMuted: (muted: boolean) => void;
1789
- sendVideoMuted: (muted: boolean) => void;
1790
1786
  server: {
1791
1787
  connected: boolean;
1792
1788
  attemptedConnectedAtLeastOnce: boolean;
@@ -2104,8 +2100,6 @@ declare class VegaRtcManager implements RtcManager {
2104
2100
  }): void;
2105
2101
  close(): void;
2106
2102
  disconnectAll(): void;
2107
- sendAudioMutedStats(muted: boolean): void;
2108
- sendVideoMutedStats(muted: boolean): void;
2109
2103
  sendStatsCustomEvent(eventName: string, data?: any): void;
2110
2104
  rtcStatsConnect(): void;
2111
2105
  rtcStatsDisconnect(): void;
package/dist/index.mjs CHANGED
@@ -224,12 +224,6 @@ const rtcStats = {
224
224
  value,
225
225
  });
226
226
  },
227
- sendAudioMuted: (muted) => {
228
- rtcStats.sendEvent("audio_muted", { muted });
229
- },
230
- sendVideoMuted: (muted) => {
231
- rtcStats.sendEvent("video_muted", { muted });
232
- },
233
227
  server,
234
228
  };
235
229
 
@@ -2656,12 +2650,6 @@ class P2pRtcManager {
2656
2650
  }),
2657
2651
  ];
2658
2652
  }
2659
- sendAudioMutedStats(muted) {
2660
- rtcStats.sendEvent("audio_muted", { muted });
2661
- }
2662
- sendVideoMutedStats(muted) {
2663
- rtcStats.sendEvent("video_muted", { muted });
2664
- }
2665
2653
  sendStatsCustomEvent(eventName, data) {
2666
2654
  rtcStats.sendEvent(eventName, data);
2667
2655
  }
@@ -5455,12 +5443,6 @@ class VegaRtcManager {
5455
5443
  this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
5456
5444
  this._qualityMonitor.close();
5457
5445
  }
5458
- sendAudioMutedStats(muted) {
5459
- rtcStats.sendEvent("audio_muted", { muted });
5460
- }
5461
- sendVideoMutedStats(muted) {
5462
- rtcStats.sendEvent("video_muted", { muted });
5463
- }
5464
5446
  sendStatsCustomEvent(eventName, data) {
5465
5447
  rtcStats.sendEvent(eventName, data);
5466
5448
  }
@@ -224,12 +224,6 @@ const rtcStats = {
224
224
  value,
225
225
  });
226
226
  },
227
- sendAudioMuted: (muted) => {
228
- rtcStats.sendEvent("audio_muted", { muted });
229
- },
230
- sendVideoMuted: (muted) => {
231
- rtcStats.sendEvent("video_muted", { muted });
232
- },
233
227
  server,
234
228
  };
235
229
 
@@ -2656,12 +2650,6 @@ class P2pRtcManager {
2656
2650
  }),
2657
2651
  ];
2658
2652
  }
2659
- sendAudioMutedStats(muted) {
2660
- rtcStats.sendEvent("audio_muted", { muted });
2661
- }
2662
- sendVideoMutedStats(muted) {
2663
- rtcStats.sendEvent("video_muted", { muted });
2664
- }
2665
2653
  sendStatsCustomEvent(eventName, data) {
2666
2654
  rtcStats.sendEvent(eventName, data);
2667
2655
  }
@@ -5455,12 +5443,6 @@ class VegaRtcManager {
5455
5443
  this._mediasoupDeviceInitializedAsync = Promise.resolve(null);
5456
5444
  this._qualityMonitor.close();
5457
5445
  }
5458
- sendAudioMutedStats(muted) {
5459
- rtcStats.sendEvent("audio_muted", { muted });
5460
- }
5461
- sendVideoMutedStats(muted) {
5462
- rtcStats.sendEvent("video_muted", { muted });
5463
- }
5464
5446
  sendStatsCustomEvent(eventName, data) {
5465
5447
  rtcStats.sendEvent(eventName, data);
5466
5448
  }
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": "10.0.1",
4
+ "version": "11.0.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/whereby/sdk",
7
7
  "repository": {
@@ -62,10 +62,10 @@
62
62
  "prettier": "^3.5.3",
63
63
  "process": "^0.11.10",
64
64
  "typescript": "^5.8.3",
65
+ "@whereby.com/eslint-config": "0.1.0",
65
66
  "@whereby.com/jest-config": "0.1.0",
66
- "@whereby.com/rollup-config": "0.1.1",
67
67
  "@whereby.com/prettier-config": "0.1.0",
68
- "@whereby.com/eslint-config": "0.1.0",
68
+ "@whereby.com/rollup-config": "0.1.1",
69
69
  "@whereby.com/tsconfig": "0.1.0"
70
70
  },
71
71
  "engines": {