armcloud-rtc 1.5.1 → 1.5.2

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.
@@ -43,6 +43,7 @@ declare class customRtc {
43
43
  private audioDeviceId;
44
44
  private isCameraInject;
45
45
  private isMicrophoneInject;
46
+ private metricsReporter;
46
47
  private cameraResolution;
47
48
  constructor(viewId: string, params: any, callbacks: any, logTime: any);
48
49
  isSupported(): Promise<boolean>;
@@ -0,0 +1,23 @@
1
+ export declare enum ReportEventType {
2
+ FIRST_FRAME = "FirstFrame"
3
+ }
4
+ interface ReporterOptions {
5
+ endpoint: string;
6
+ commonParams?: Record<string, any>;
7
+ useBeacon?: boolean;
8
+ enableLog?: boolean;
9
+ onceOnlyKeys?: string[];
10
+ }
11
+ export declare class MetricsReporter {
12
+ private options;
13
+ private keyParamsMap;
14
+ private onceOnlyKeys;
15
+ private reportedKeys;
16
+ private keyQueueMap;
17
+ constructor(options: ReporterOptions);
18
+ addParam(key: string, params: Record<string, any>): void;
19
+ instant(key: string, extraParams?: Record<string, any>): void;
20
+ private report;
21
+ private log;
22
+ }
23
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "armcloud-rtc",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/types/index.d.ts",