@100mslive/hms-video-store 0.13.4-alpha.1 → 0.13.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.
@@ -120,6 +120,12 @@ export interface HMSTrackStats extends HMSLocalTrackStats, HMSRemoteTrackStats {
120
120
  export interface HMSPeerStats {
121
121
  publish?: RTCIceCandidatePairStats & {
122
122
  bitrate: number;
123
+ /**
124
+ * Sum of `bytesSent` across active outbound-rtp streams at the time the stat was taken.
125
+ * Used internally to derive `bitrate` on the next sample so the value only reflects
126
+ * actual media traffic, not ICE/RTCP/BWE probe padding (LIV-243).
127
+ */
128
+ outboundRtpBytesSent?: number;
123
129
  };
124
130
  subscribe?: RTCIceCandidatePairStats & {
125
131
  bitrate: number;
@@ -3,8 +3,10 @@ import { HMSPeerStats, HMSTrackStats, PeerConnectionType } from '../interfaces/w
3
3
  import { HMSLocalTrack, HMSRemoteTrack } from '../media/tracks';
4
4
  export declare const getLocalTrackStats: (eventBus: EventBus, track: HMSLocalTrack, peerName?: string, prevTrackStats?: Record<string, HMSTrackStats>) => Promise<Record<string, HMSTrackStats> | undefined>;
5
5
  export declare const getTrackStats: (eventBus: EventBus, track: HMSRemoteTrack, peerName?: string, prevTrackStats?: HMSTrackStats) => Promise<HMSTrackStats | undefined>;
6
+ export declare const sumOutboundRtpBytesSent: (report?: RTCStatsReport) => number;
6
7
  export declare const getLocalPeerStatsFromReport: (type: PeerConnectionType, report?: RTCStatsReport, prevStats?: HMSPeerStats) => (RTCIceCandidatePairStats & {
7
8
  bitrate: number;
9
+ outboundRtpBytesSent?: number | undefined;
8
10
  }) | undefined;
9
11
  export declare const getActiveCandidatePairFromReport: (report?: RTCStatsReport) => RTCIceCandidatePairStats | undefined;
10
12
  export declare const getPacketsLostAndJitterFromReport: (report?: RTCStatsReport) => {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.13.4-alpha.1",
2
+ "version": "0.13.4",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -72,5 +72,5 @@
72
72
  "conferencing",
73
73
  "100ms"
74
74
  ],
75
- "gitHead": "094dc3e60e1e9a3cec11251eb8157ddca5f26490"
75
+ "gitHead": "30b036ca6a61126086816c4d9180332504e8cda4"
76
76
  }