livekit-client 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,10 +25,13 @@ export interface VideoSenderStats extends SenderStats {
25
25
  rid: string;
26
26
  frameWidth: number;
27
27
  frameHeight: number;
28
+ framesPerSecond: number;
28
29
  framesSent: number;
29
- qualityLimitationReason: string;
30
- qualityLimitationResolutionChanges: number;
31
- retransmittedPacketsSent: number;
30
+ qualityLimitationReason?: string;
31
+ qualityLimitationDurations?: Record<string, number>;
32
+ qualityLimitationResolutionChanges?: number;
33
+ retransmittedPacketsSent?: number;
34
+ targetBitrate: number;
32
35
  }
33
36
  interface ReceiverStats {
34
37
  jitterBufferDelay?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/room/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,OAAO,CAAC;AAGrC,UAAU,WAAW;IACnB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,sCAAsC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACnD,IAAI,EAAE,OAAO,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAEjB,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC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,EAAE,wBAAwB,EAAE,EACtC,GAAG,CAAC,EAAE,OAAO,GACZ,UAAU,EAAE,CA6Cd"}
@@ -25,10 +25,13 @@ export interface VideoSenderStats extends SenderStats {
25
25
  rid: string;
26
26
  frameWidth: number;
27
27
  frameHeight: number;
28
+ framesPerSecond: number;
28
29
  framesSent: number;
29
- qualityLimitationReason: string;
30
- qualityLimitationResolutionChanges: number;
31
- retransmittedPacketsSent: number;
30
+ qualityLimitationReason?: string;
31
+ qualityLimitationDurations?: Record<string, number>;
32
+ qualityLimitationResolutionChanges?: number;
33
+ retransmittedPacketsSent?: number;
34
+ targetBitrate: number;
32
35
  }
33
36
  interface ReceiverStats {
34
37
  jitterBufferDelay?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-client",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "description": "JavaScript/TypeScript client SDK for LiveKit",
5
5
  "main": "./dist/livekit-client.umd.js",
6
6
  "unpkg": "./dist/livekit-client.umd.js",
package/src/room/stats.ts CHANGED
@@ -42,14 +42,20 @@ export interface VideoSenderStats extends SenderStats {
42
42
 
43
43
  frameHeight: number;
44
44
 
45
+ framesPerSecond: number;
46
+
45
47
  framesSent: number;
46
48
 
47
49
  // bandwidth, cpu, other, none
48
- qualityLimitationReason: string;
50
+ qualityLimitationReason?: string;
51
+
52
+ qualityLimitationDurations?: Record<string, number>;
53
+
54
+ qualityLimitationResolutionChanges?: number;
49
55
 
50
- qualityLimitationResolutionChanges: number;
56
+ retransmittedPacketsSent?: number;
51
57
 
52
- retransmittedPacketsSent: number;
58
+ targetBitrate: number;
53
59
  }
54
60
 
55
61
  interface ReceiverStats {
@@ -448,6 +448,10 @@ export default abstract class LocalTrack<
448
448
  const unlock = await this.processorLock.lock();
449
449
  try {
450
450
  this.log.debug('setting up processor', this.logContext);
451
+
452
+ this.processorElement =
453
+ this.processorElement ?? (document.createElement(this.kind) as HTMLMediaElement);
454
+
451
455
  const processorOptions = {
452
456
  kind: this.kind,
453
457
  track: this._mediaStreamTrack,
@@ -461,8 +465,6 @@ export default abstract class LocalTrack<
461
465
  if (this.kind === 'unknown') {
462
466
  throw TypeError('cannot set processor on track of unknown kind');
463
467
  }
464
- this.processorElement =
465
- this.processorElement ?? (document.createElement(this.kind) as HTMLMediaElement);
466
468
 
467
469
  attachToElement(this._mediaStreamTrack, this.processorElement);
468
470
  this.processorElement.muted = true;
@@ -180,17 +180,20 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
180
180
  streamId: v.id,
181
181
  frameHeight: v.frameHeight,
182
182
  frameWidth: v.frameWidth,
183
+ framesPerSecond: v.framesPerSecond,
184
+ framesSent: v.framesSent,
183
185
  firCount: v.firCount,
184
186
  pliCount: v.pliCount,
185
187
  nackCount: v.nackCount,
186
188
  packetsSent: v.packetsSent,
187
189
  bytesSent: v.bytesSent,
188
- framesSent: v.framesSent,
189
- timestamp: v.timestamp,
190
- rid: v.rid ?? v.id,
191
- retransmittedPacketsSent: v.retransmittedPacketsSent,
192
190
  qualityLimitationReason: v.qualityLimitationReason,
191
+ qualityLimitationDurations: v.qualityLimitationDurations,
193
192
  qualityLimitationResolutionChanges: v.qualityLimitationResolutionChanges,
193
+ rid: v.rid ?? v.id,
194
+ retransmittedPacketsSent: v.retransmittedPacketsSent,
195
+ targetBitrate: v.targetBitrate,
196
+ timestamp: v.timestamp,
194
197
  };
195
198
 
196
199
  // locate the appropriate remote-inbound-rtp item
@@ -205,6 +208,8 @@ export default class LocalVideoTrack extends LocalTrack<Track.Kind.Video> {
205
208
  }
206
209
  });
207
210
 
211
+ // make sure highest res layer is always first
212
+ items.sort((a, b) => (b.frameWidth ?? 0) - (a.frameWidth ?? 0));
208
213
  return items;
209
214
  }
210
215