armcloud-rtc 1.5.1 → 1.5.3
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.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.global.js +4 -4
- package/dist/index.global.js.map +1 -1
- package/dist/types/lib/customRtc.d.ts +4 -1
- package/dist/types/lib/metrics-reporter.d.ts +23 -0
- package/dist/types/lib/pkg.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26,7 +26,8 @@ declare class customRtc {
|
|
|
26
26
|
isFirstFrame: boolean;
|
|
27
27
|
firstFrameCount: number;
|
|
28
28
|
rotation: number;
|
|
29
|
-
|
|
29
|
+
private groupControlSync;
|
|
30
|
+
private isGroupControl;
|
|
30
31
|
enterkeyhintObj: {
|
|
31
32
|
2: string;
|
|
32
33
|
3: string;
|
|
@@ -43,6 +44,7 @@ declare class customRtc {
|
|
|
43
44
|
private audioDeviceId;
|
|
44
45
|
private isCameraInject;
|
|
45
46
|
private isMicrophoneInject;
|
|
47
|
+
private metricsReporter;
|
|
46
48
|
private cameraResolution;
|
|
47
49
|
constructor(viewId: string, params: any, callbacks: any, logTime: any);
|
|
48
50
|
isSupported(): Promise<boolean>;
|
|
@@ -77,6 +79,7 @@ declare class customRtc {
|
|
|
77
79
|
sendUserMessage(userId: string, message: string, notSendInGroups?: boolean): Promise<unknown>;
|
|
78
80
|
kickItOutRoom(pads: Array<string>): void;
|
|
79
81
|
joinGroupRoom(pads: any): void;
|
|
82
|
+
toggleGroupControlSync(flag?: boolean): void;
|
|
80
83
|
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
81
84
|
onUserLeave(): void;
|
|
82
85
|
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
@@ -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/dist/types/lib/pkg.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare class ArmcloudEngine {
|
|
|
10
10
|
logTime: any;
|
|
11
11
|
constructor(params: any);
|
|
12
12
|
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
13
|
+
toggleGroupControlSync(flag?: boolean): void;
|
|
13
14
|
getInjectStreamStatus(type: "video" | "camera" | "audio", timeout?: number): any;
|
|
14
15
|
generateUUID(): string;
|
|
15
16
|
isSupported(): any;
|