@vkontakte/calls-sdk 2.4.4-beta.24 → 2.4.4-beta.28

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.
@@ -15,8 +15,11 @@ export default class Logger extends BaseLogger {
15
15
  private _stopTimeout;
16
16
  private _onUnload;
17
17
  log(name: Stat, value?: string, immediately?: boolean): void;
18
+ logCustom(name: string, params: Record<string, string | number>, immediately?: boolean): void;
19
+ _logInternal(operation: string, custom: Record<string, string | number>, immediately: boolean): void;
18
20
  destroy(): void;
19
21
  static create(api: BaseApi, externalLogger: BaseLogger | null): void;
20
22
  static log(name: Stat, value?: string, immediately?: boolean): void;
23
+ static logCustom(name: string, params: Record<string, string | number>, immediately?: boolean): void;
21
24
  static destroy(): void;
22
25
  }
@@ -2,7 +2,6 @@ import { ParticipantStreamDescription } from '../types/ParticipantStreamDescript
2
2
  import SignalingMessage from '../types/SignalingMessage';
3
3
  export declare class ParticipantIdRegistry {
4
4
  private streamDescriptionByCompactId;
5
- constructor();
6
5
  getStreamDescription(compactedId: number): ParticipantStreamDescription | undefined;
7
6
  handleMessage(data: ArrayBuffer): SignalingMessage | null;
8
7
  private _createParticipantSourcesUpdateNotification;
@@ -6,11 +6,25 @@ export declare type PerfStatReport = {
6
6
  framesDecoded: number;
7
7
  framesReceived: number;
8
8
  };
9
+ export declare type CallStarReport = {
10
+ nack_sent: number;
11
+ nack_received: number;
12
+ pli_sent: number;
13
+ pli_received: number;
14
+ fir_sent: number;
15
+ fir_received: number;
16
+ frames_dropped: number;
17
+ jitter_video: number;
18
+ jitter_audio: number;
19
+ interframe_delay_variance: number;
20
+ };
9
21
  export default class PerfStatReporter extends EventEmitter {
10
22
  private _previousTimestamp;
23
+ private _previousCallStatReport;
11
24
  private _signaling;
12
25
  constructor(transport: ServerTransport | DirectTransport, signaling: BaseSignaling);
13
26
  destroy(): void;
14
27
  static getEstimatedPerformanceIndex(): number;
15
28
  private _handleStats;
29
+ private _reportCallStats;
16
30
  }
@@ -31,6 +31,7 @@ export declare type StatRtp = {
31
31
  framesReceived?: number;
32
32
  framesDropped?: number;
33
33
  framesDroppedDelta?: number;
34
+ interframeDelayVariance: number;
34
35
  };
35
36
  export declare type StatItem = {
36
37
  timestamp: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.4.4-beta.24",
3
+ "version": "2.4.4-beta.28",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -28,7 +28,7 @@ export declare type ParamsObject = {
28
28
  * API ключ приложения
29
29
  */
30
30
  apiKey: string;
31
- apiEnv?: 'PROD' | 'TEST' | 'VIDEOTEST' | 'DEV';
31
+ apiEnv?: 'AUTO' | 'PROD' | 'TEST' | 'VIDEOTEST' | string;
32
32
  apiAuth?: typeof AuthData;
33
33
  /**
34
34
  * Токен авторизации
@@ -427,10 +427,8 @@ export default abstract class Params {
427
427
  static get device(): string;
428
428
  static get apiAppId(): number;
429
429
  static get apiKey(): string;
430
- static get apiEnv(): {
431
- api: string;
432
- connect: string;
433
- };
430
+ static get apiEnv(): string;
431
+ static get apiEndpoint(): string;
434
432
  static get authToken(): string;
435
433
  static set authToken(value: string);
436
434
  static get anonymToken(): string;
package/static/Utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { BigInteger } from 'big-integer';
1
+ import { BigInteger } from 'big-integer';
2
2
  import UserType from '../enums/UserType';
3
3
  import { ExternalParticipant } from '../types/ExternalId';
4
4
  import { CompositeUserId, OkUserId, Participant, ParticipantStateMapped } from '../types/Participant';
@@ -1,2 +0,0 @@
1
- export declare function loadDependencies(): Promise<void>;
2
- export declare function getLibrary(name: string): any;