armcloud-rtc 1.5.2 → 1.5.3-beta.1
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 +6 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.global.js +16 -14
- package/dist/index.global.js.map +1 -1
- package/dist/types/index.d.ts +885 -3
- package/package.json +12 -5
- package/dist/types/lib/constant.d.ts +0 -121
- package/dist/types/lib/customGroupRtc.d.ts +0 -20
- package/dist/types/lib/customRtc.d.ts +0 -146
- package/dist/types/lib/enums.d.ts +0 -8
- package/dist/types/lib/error.d.ts +0 -26
- package/dist/types/lib/metrics-reporter.d.ts +0 -23
- package/dist/types/lib/mixins.d.ts +0 -2
- package/dist/types/lib/pkg.d.ts +0 -84
- package/dist/types/lib/screenshotOverlay.d.ts +0 -17
- package/dist/types/lib/shake.d.ts +0 -8
- package/dist/types/lib/textInput.d.ts +0 -1
- package/dist/types/lib/type.d.ts +0 -48
- package/dist/types/lib/types/webrtcType.d.ts +0 -77
- package/dist/types/lib/utils.d.ts +0 -5
- package/dist/types/lib/videoElement.d.ts +0 -21
- package/dist/types/lib/webGroupRtc.d.ts +0 -18
- package/dist/types/lib/webRtc.d.ts +0 -158
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "armcloud-rtc",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"main": "dist/index.cjs.js",
|
|
5
|
-
"module": "dist/index.es.js",
|
|
6
|
-
"types": "dist/types/index.d.ts",
|
|
3
|
+
"version": "1.5.3-beta.1",
|
|
4
|
+
"main": "./dist/index.cjs.js",
|
|
5
|
+
"module": "./dist/index.es.js",
|
|
6
|
+
"types": "./dist/types/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -17,5 +17,12 @@
|
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"description": "armcloud-rtc sdk",
|
|
19
19
|
"dependencies": {},
|
|
20
|
-
"devDependencies": {}
|
|
20
|
+
"devDependencies": {},
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
|
+
"import": "./dist/index.es.js",
|
|
25
|
+
"require": "./dist/index.cjs.js"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
21
28
|
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
export declare const COMMON_CODE: {
|
|
2
|
-
SUCCESS: number;
|
|
3
|
-
FAIL: number;
|
|
4
|
-
CLOSE: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const ERROR_CODE: {
|
|
7
|
-
DATA_CHANNEL: number;
|
|
8
|
-
DELAY: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const LOG_TYPE: {
|
|
11
|
-
SUCCESS: number;
|
|
12
|
-
FAIL: number;
|
|
13
|
-
};
|
|
14
|
-
export declare enum MEDIA_CONTROL_TYPE {
|
|
15
|
-
AUDIO_ONLY = 1,
|
|
16
|
-
VIDEO_ONLY = 2,
|
|
17
|
-
AUDIO_VIDEO = 3
|
|
18
|
-
}
|
|
19
|
-
export declare const MEDIA_VOICE_TYPE: {
|
|
20
|
-
AUDIO: number;
|
|
21
|
-
VIDEO: number;
|
|
22
|
-
AUDIO_VIDEO: number;
|
|
23
|
-
};
|
|
24
|
-
export declare const PROGRESS_INFO: {
|
|
25
|
-
WS_CONNECT: {
|
|
26
|
-
code: number;
|
|
27
|
-
msg: string;
|
|
28
|
-
};
|
|
29
|
-
WS_SUCCESS: {
|
|
30
|
-
code: number;
|
|
31
|
-
msg: string;
|
|
32
|
-
};
|
|
33
|
-
WS_CLOSE: {
|
|
34
|
-
code: number;
|
|
35
|
-
msg: string;
|
|
36
|
-
};
|
|
37
|
-
WS_ERROR: {
|
|
38
|
-
code: number;
|
|
39
|
-
msg: string;
|
|
40
|
-
};
|
|
41
|
-
WS_RETRY: {
|
|
42
|
-
code: number;
|
|
43
|
-
msg: string;
|
|
44
|
-
};
|
|
45
|
-
OWN_JOIN_ROOM: {
|
|
46
|
-
code: number;
|
|
47
|
-
msg: string;
|
|
48
|
-
};
|
|
49
|
-
RECEIVE_OFFER: {
|
|
50
|
-
code: number;
|
|
51
|
-
msg: string;
|
|
52
|
-
};
|
|
53
|
-
RECEIVE_OFFER_ERR: {
|
|
54
|
-
code: number;
|
|
55
|
-
msg: string;
|
|
56
|
-
};
|
|
57
|
-
SEND_ANSWER: {
|
|
58
|
-
code: number;
|
|
59
|
-
msg: string;
|
|
60
|
-
};
|
|
61
|
-
SEND_ANSWER_ERR: {
|
|
62
|
-
code: number;
|
|
63
|
-
msg: string;
|
|
64
|
-
};
|
|
65
|
-
RECEIVE_ICE: {
|
|
66
|
-
code: number;
|
|
67
|
-
msg: string;
|
|
68
|
-
};
|
|
69
|
-
RECEIVE_ICE_ERR: {
|
|
70
|
-
code: number;
|
|
71
|
-
msg: string;
|
|
72
|
-
};
|
|
73
|
-
SEND_ICE: {
|
|
74
|
-
code: number;
|
|
75
|
-
msg: string;
|
|
76
|
-
};
|
|
77
|
-
RTC_CONNECTING: {
|
|
78
|
-
code: number;
|
|
79
|
-
msg: string;
|
|
80
|
-
};
|
|
81
|
-
RTC_CONNECTED: {
|
|
82
|
-
code: number;
|
|
83
|
-
msg: string;
|
|
84
|
-
};
|
|
85
|
-
RTC_DISCONNECTED: {
|
|
86
|
-
code: number;
|
|
87
|
-
msg: string;
|
|
88
|
-
};
|
|
89
|
-
RTC_CLOSE: {
|
|
90
|
-
code: number;
|
|
91
|
-
msg: string;
|
|
92
|
-
};
|
|
93
|
-
RTC_FAILED: {
|
|
94
|
-
code: number;
|
|
95
|
-
msg: string;
|
|
96
|
-
};
|
|
97
|
-
RTC_TRACK_VIDEO: {
|
|
98
|
-
code: number;
|
|
99
|
-
msg: string;
|
|
100
|
-
};
|
|
101
|
-
RTC_TRACK_VIDEO_LOAD: {
|
|
102
|
-
code: number;
|
|
103
|
-
msg: string;
|
|
104
|
-
};
|
|
105
|
-
RTC_CHANNEL_OPEN: {
|
|
106
|
-
code: number;
|
|
107
|
-
msg: string;
|
|
108
|
-
};
|
|
109
|
-
RTC_CHANNEL_ERR: {
|
|
110
|
-
code: number;
|
|
111
|
-
msg: string;
|
|
112
|
-
};
|
|
113
|
-
VIDEO_UI_NUMBER: {
|
|
114
|
-
code: number;
|
|
115
|
-
msg: string;
|
|
116
|
-
};
|
|
117
|
-
VIDEO_FIRST_FRAME: {
|
|
118
|
-
code: number;
|
|
119
|
-
msg: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare class huoshanGroupRtc {
|
|
2
|
-
private engine;
|
|
3
|
-
private params;
|
|
4
|
-
private pads;
|
|
5
|
-
private callbacks;
|
|
6
|
-
private sourceArr;
|
|
7
|
-
constructor(params: any, pads: Array<string>, callbacks: any);
|
|
8
|
-
close(): void;
|
|
9
|
-
kickItOutRoom(pads: Array<string>): void;
|
|
10
|
-
joinRoom(pads: any): Promise<void>;
|
|
11
|
-
getEngine(): Promise<void>;
|
|
12
|
-
sendUserMessage(userId: string, message?: string): Promise<any>;
|
|
13
|
-
sendRoomMessage(message: string): Promise<any>;
|
|
14
|
-
getMsgTemplate(touchType: string, content: object): string;
|
|
15
|
-
onUserJoined(): void;
|
|
16
|
-
onUserMessageReceived(): void;
|
|
17
|
-
onUserLeave(): void;
|
|
18
|
-
createEngine(options: any): Promise<void>;
|
|
19
|
-
}
|
|
20
|
-
export default huoshanGroupRtc;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { MediaType } from "@volcengine/rtc";
|
|
2
|
-
import type { CustomDefinition } from "./type";
|
|
3
|
-
declare class customRtc {
|
|
4
|
-
private initDomId;
|
|
5
|
-
private initDomWidth;
|
|
6
|
-
private initDomHeight;
|
|
7
|
-
private videoDomId;
|
|
8
|
-
private hasPushDown;
|
|
9
|
-
private enableMicrophone;
|
|
10
|
-
private enableCamera;
|
|
11
|
-
private screenShotInstance;
|
|
12
|
-
private isFirstRotate;
|
|
13
|
-
private remoteResolution;
|
|
14
|
-
private touchConfig;
|
|
15
|
-
private touchInfo;
|
|
16
|
-
private simulateTouchInfo;
|
|
17
|
-
private options;
|
|
18
|
-
private engine;
|
|
19
|
-
private groupEngine;
|
|
20
|
-
private groupRtc;
|
|
21
|
-
private inputElement;
|
|
22
|
-
private promiseMap;
|
|
23
|
-
roomMessage: any;
|
|
24
|
-
autoRecoveryTimer: any;
|
|
25
|
-
errorInfo: any;
|
|
26
|
-
isFirstFrame: boolean;
|
|
27
|
-
firstFrameCount: number;
|
|
28
|
-
rotation: number;
|
|
29
|
-
isGroupControl: boolean;
|
|
30
|
-
enterkeyhintObj: {
|
|
31
|
-
2: string;
|
|
32
|
-
3: string;
|
|
33
|
-
4: string;
|
|
34
|
-
5: string;
|
|
35
|
-
6: string;
|
|
36
|
-
7: string;
|
|
37
|
-
};
|
|
38
|
-
callbacks: any;
|
|
39
|
-
logTime: any;
|
|
40
|
-
remoteUserId: string;
|
|
41
|
-
private rotateType;
|
|
42
|
-
private videoDeviceId;
|
|
43
|
-
private audioDeviceId;
|
|
44
|
-
private isCameraInject;
|
|
45
|
-
private isMicrophoneInject;
|
|
46
|
-
private metricsReporter;
|
|
47
|
-
private cameraResolution;
|
|
48
|
-
constructor(viewId: string, params: any, callbacks: any, logTime: any);
|
|
49
|
-
isSupported(): Promise<boolean>;
|
|
50
|
-
setLogTime(key: any): void;
|
|
51
|
-
addReportInfo(info: any): void;
|
|
52
|
-
setMicrophone(val: boolean): void;
|
|
53
|
-
setCamera(val: boolean): void;
|
|
54
|
-
setVideoDeviceId(val: string): Promise<any>;
|
|
55
|
-
setAudioDeviceId(val: string): Promise<any>;
|
|
56
|
-
sendEventReport(operation: any): void;
|
|
57
|
-
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
58
|
-
triggerRecoveryTimeCallback(): void;
|
|
59
|
-
setVideoEncoder(width: number, height: number): void;
|
|
60
|
-
createEngine(): Promise<void>;
|
|
61
|
-
createGroupEngine(pads: any[], config: any): Promise<void>;
|
|
62
|
-
destroyEngine(): void;
|
|
63
|
-
muted(): void;
|
|
64
|
-
unmuted(): void;
|
|
65
|
-
sendGroupInputString(pads: any, strs: any): void;
|
|
66
|
-
sendGroupInputClipper(pads: any, strs: any): void;
|
|
67
|
-
startPlay(): void;
|
|
68
|
-
sendGroupRoomMessage(message: string): Promise<any>;
|
|
69
|
-
getMsgTemplate(touchType: string, content: object): string;
|
|
70
|
-
getEquipmentInfo(type: "app" | "attr"): void;
|
|
71
|
-
getInjectStreamStatus(type: "video" | "camera" | "audio", timeout?: number): Promise<unknown>;
|
|
72
|
-
appUnInstall(pkgNames: Array<string>): void;
|
|
73
|
-
private notifyInject;
|
|
74
|
-
private startMediaStream;
|
|
75
|
-
private stopMediaStream;
|
|
76
|
-
private cameraInject;
|
|
77
|
-
private microphoneInject;
|
|
78
|
-
sendUserMessage(userId: string, message: string, notSendInGroups?: boolean): Promise<unknown>;
|
|
79
|
-
kickItOutRoom(pads: Array<string>): void;
|
|
80
|
-
joinGroupRoom(pads: any): void;
|
|
81
|
-
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
82
|
-
onUserLeave(): void;
|
|
83
|
-
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
84
|
-
getCameraState(isRetry?: boolean): Promise<void>;
|
|
85
|
-
updateUiH5(isRetry?: boolean): Promise<void>;
|
|
86
|
-
triggerClickEvent(options: {
|
|
87
|
-
x: number;
|
|
88
|
-
y: number;
|
|
89
|
-
width: number;
|
|
90
|
-
height: number;
|
|
91
|
-
}, forwardOff?: boolean): void;
|
|
92
|
-
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
93
|
-
x: number;
|
|
94
|
-
y: number;
|
|
95
|
-
width: number;
|
|
96
|
-
height: number;
|
|
97
|
-
}, forwardOff?: boolean): void;
|
|
98
|
-
onUserJoined(): void;
|
|
99
|
-
onRemoteVideoFirstFrame(): void;
|
|
100
|
-
stop(): Promise<never>;
|
|
101
|
-
onUserPublishStream(): void;
|
|
102
|
-
sendShakeInfo(time: any): void;
|
|
103
|
-
checkInputState(msg: any): void;
|
|
104
|
-
onRoomMessageReceived(): void;
|
|
105
|
-
onUserMessageReceived(): void;
|
|
106
|
-
sendInputClipper(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
107
|
-
sendInputString(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
108
|
-
setStreamConfig(config: CustomDefinition, forwardOff?: boolean): void;
|
|
109
|
-
pauseAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
110
|
-
resumeAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
111
|
-
setRemoteVideoRotation(rotation: number): Promise<void>;
|
|
112
|
-
setScreenResolution(options: {
|
|
113
|
-
width: number;
|
|
114
|
-
height: number;
|
|
115
|
-
dpi: number;
|
|
116
|
-
type: "resetDensity" | "updateDensity";
|
|
117
|
-
}, forwardOff?: boolean): void;
|
|
118
|
-
subscribeStream(mediaType: MediaType): Promise<void>;
|
|
119
|
-
rotateContainerVideo(type?: 0 | 1): void;
|
|
120
|
-
setScreenshotRotation(rotation?: number): void;
|
|
121
|
-
takeScreenshot(rotation?: number): void;
|
|
122
|
-
resizeScreenshot(width: number, height: number): void;
|
|
123
|
-
showScreenShot(): void;
|
|
124
|
-
hideScreenShot(): void;
|
|
125
|
-
clearScreenShot(): void;
|
|
126
|
-
unsubscribeStream(mediaType: MediaType): Promise<void>;
|
|
127
|
-
saveScreenShotToLocal(): Promise<ImageData>;
|
|
128
|
-
saveScreenShotToRemote(): void;
|
|
129
|
-
setPhoneRotation(type: number): void;
|
|
130
|
-
getRotateType(): number;
|
|
131
|
-
private initRotateScreen;
|
|
132
|
-
rotateScreen(type: number): Promise<void>;
|
|
133
|
-
setGPS(longitude: number, latitude: number): void;
|
|
134
|
-
executeAdbCommand(command: string, forwardOff?: boolean): void;
|
|
135
|
-
setKeyboardStyle(keyBoardType: "pad" | "local"): void;
|
|
136
|
-
onCheckInputState(): Promise<void>;
|
|
137
|
-
setAutoRecycleTime(second: number): void;
|
|
138
|
-
getAutoRecycleTime(): any;
|
|
139
|
-
triggerKeyboardShortcut(metaState: number | string, keyCode: number | string, forwardOff?: boolean): void;
|
|
140
|
-
sendCommand(command: string, forwardOff?: boolean): void;
|
|
141
|
-
injectVideoStream(type: "startVideoInjection" | "stopVideoInjection", options?: any, timeout?: number, forwardOff?: boolean): Promise<unknown>;
|
|
142
|
-
increaseVolume(forwardOff?: boolean): void;
|
|
143
|
-
decreaseVolume(forwardOff?: boolean): void;
|
|
144
|
-
saveCloudClipboard(flag: boolean): void;
|
|
145
|
-
}
|
|
146
|
-
export default customRtc;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export declare const handleError: (error: any) => {
|
|
2
|
-
name?: undefined;
|
|
3
|
-
message?: undefined;
|
|
4
|
-
stack?: undefined;
|
|
5
|
-
time?: undefined;
|
|
6
|
-
} | {
|
|
7
|
-
name: any;
|
|
8
|
-
message: any;
|
|
9
|
-
stack: any;
|
|
10
|
-
time: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const handleIceError: (error: any) => {
|
|
13
|
-
errorCode?: undefined;
|
|
14
|
-
errorText?: undefined;
|
|
15
|
-
url?: undefined;
|
|
16
|
-
address?: undefined;
|
|
17
|
-
port?: undefined;
|
|
18
|
-
time?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
errorCode: any;
|
|
21
|
-
errorText: any;
|
|
22
|
-
url: any;
|
|
23
|
-
address: any;
|
|
24
|
-
port: any;
|
|
25
|
-
time: number;
|
|
26
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import "webrtc-adapter";
|
|
2
|
-
import type { CustomDefinition } from "./type";
|
|
3
|
-
declare class ArmcloudEngine {
|
|
4
|
-
version: string;
|
|
5
|
-
rtcInstance: any;
|
|
6
|
-
rtcOptions: any;
|
|
7
|
-
callbacks: any;
|
|
8
|
-
streamType: any;
|
|
9
|
-
private axiosSource;
|
|
10
|
-
logTime: any;
|
|
11
|
-
constructor(params: any);
|
|
12
|
-
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
13
|
-
getInjectStreamStatus(type: "video" | "camera" | "audio", timeout?: number): any;
|
|
14
|
-
generateUUID(): string;
|
|
15
|
-
isSupported(): any;
|
|
16
|
-
destroyEngine(): void;
|
|
17
|
-
triggerClickEvent(options: {
|
|
18
|
-
x: number;
|
|
19
|
-
y: number;
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
}, forwardOff?: boolean): void;
|
|
23
|
-
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
}, forwardOff?: boolean): void;
|
|
29
|
-
setMicrophone(val: boolean): void;
|
|
30
|
-
setCamera(val: boolean): void;
|
|
31
|
-
startPlay(): void;
|
|
32
|
-
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
33
|
-
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
34
|
-
joinGroupRoom(pads?: any[]): void;
|
|
35
|
-
kickItOutRoom(pads?: any[]): void;
|
|
36
|
-
stop(): Promise<any>;
|
|
37
|
-
muted(): void;
|
|
38
|
-
unmuted(): void;
|
|
39
|
-
appUnInstall(pkgNames: Array<string>): void;
|
|
40
|
-
getEquipmentInfo(type: "app" | "attr"): void;
|
|
41
|
-
setVideoDeviceId(val: string): void;
|
|
42
|
-
setAudioDeviceId(val: string): void;
|
|
43
|
-
sendInputClipper(inputStr: string, forwardOff?: boolean): void;
|
|
44
|
-
sendGroupInputClipper(pads: any, strs: any): void;
|
|
45
|
-
sendGroupInputString(pads: any, strs: any): void;
|
|
46
|
-
sendInputString(inputStr: string, forwardOff?: boolean): void;
|
|
47
|
-
setStreamConfig(config: CustomDefinition, forwardOff?: boolean): void;
|
|
48
|
-
pauseAllSubscribedStream(mediaType?: number): any;
|
|
49
|
-
resumeAllSubscribedStream(mediaType?: number): any;
|
|
50
|
-
subscribeStream(mediaType?: number): any;
|
|
51
|
-
unsubscribeStream(mediaType?: number): any;
|
|
52
|
-
saveScreenShotToLocal(): Promise<unknown>;
|
|
53
|
-
setScreenResolution(options: {
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
dpi: number;
|
|
57
|
-
type: "resetDensity" | "updateDensity";
|
|
58
|
-
}, forwardOff?: boolean): void;
|
|
59
|
-
saveScreenShotToRemote(): void;
|
|
60
|
-
resizeScreenshot(width: number, height: number): void;
|
|
61
|
-
showScreenShot(): void;
|
|
62
|
-
hideScreenShot(): void;
|
|
63
|
-
rotateContainerVideo(type?: 0 | 1): void;
|
|
64
|
-
setScreenshotRotation(rotation?: number): void;
|
|
65
|
-
takeScreenshot(rotation?: number): void;
|
|
66
|
-
clearScreenShot(): void;
|
|
67
|
-
setPhoneRotation(type: number): void;
|
|
68
|
-
setGPS(longitude: number, latitude: number): void;
|
|
69
|
-
executeAdbCommand(command: string, forwardOff?: boolean): void;
|
|
70
|
-
setKeyboardStyle(keyBoardType: "pad" | "local"): void;
|
|
71
|
-
triggerKeyboardShortcut(metaState: number | string, actionKey: number | string, forwardOff?: boolean): void;
|
|
72
|
-
setAutoRecycleTime(second: number): void;
|
|
73
|
-
getAutoRecycleTime(): any;
|
|
74
|
-
sendCommand(command: string, forwardOff?: boolean): void;
|
|
75
|
-
increaseVolume(forwardOff?: boolean): void;
|
|
76
|
-
decreaseVolume(forwardOff?: boolean): void;
|
|
77
|
-
saveCloudClipboard(flag: boolean): void;
|
|
78
|
-
startMediaStream(mediaType: 1 | 2 | 3): any;
|
|
79
|
-
stopMediaStream(mediaType: 1 | 2 | 3): any;
|
|
80
|
-
injectVideoStream(type: "startVideoInjection" | "stopVideoInjection", options?: any, timeout?: number, forwardOff?: boolean): any;
|
|
81
|
-
sendShake(time?: number): void;
|
|
82
|
-
getRotateType(): any;
|
|
83
|
-
}
|
|
84
|
-
export default ArmcloudEngine;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default class ScreenshotOverlay {
|
|
2
|
-
private videoContainer;
|
|
3
|
-
private video;
|
|
4
|
-
private rotateType;
|
|
5
|
-
private canvas;
|
|
6
|
-
private context;
|
|
7
|
-
constructor(videoContainer: HTMLDivElement, rotateType?: number);
|
|
8
|
-
private initCanvas;
|
|
9
|
-
private configureCanvas;
|
|
10
|
-
setScreenshotrotateType(rotateType?: 0 | 1): void;
|
|
11
|
-
takeScreenshot(rotateType?: number): void;
|
|
12
|
-
resizeScreenshot(width: number, height: number): void;
|
|
13
|
-
clearScreenShot(): void;
|
|
14
|
-
showScreenShot(): void;
|
|
15
|
-
hideScreenShot(): void;
|
|
16
|
-
destroy(): void;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const addInputElement: (rtc: any, isP2p: boolean) => void;
|
package/dist/types/lib/type.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
export interface CloudCoreConfig {
|
|
2
|
-
appId: string;
|
|
3
|
-
roomCode: string;
|
|
4
|
-
roomToken: string;
|
|
5
|
-
clientId: string;
|
|
6
|
-
userId: string;
|
|
7
|
-
expirationTime?: number;
|
|
8
|
-
selfAdaption?: string | number;
|
|
9
|
-
mediaType?: string | number;
|
|
10
|
-
rotateType?: number;
|
|
11
|
-
definition?: string | number;
|
|
12
|
-
useLocalKeyboard?: boolean;
|
|
13
|
-
allowCopyRemoteToLocal?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface TouchConfig {
|
|
16
|
-
action: number | string;
|
|
17
|
-
widthPixels: number;
|
|
18
|
-
heightPixels: number;
|
|
19
|
-
pointCount: number;
|
|
20
|
-
touchType: string;
|
|
21
|
-
properties: PropertiesInfo[];
|
|
22
|
-
coords: CoordsInfo[];
|
|
23
|
-
}
|
|
24
|
-
interface PropertiesInfo {
|
|
25
|
-
id: number;
|
|
26
|
-
toolType: number;
|
|
27
|
-
}
|
|
28
|
-
interface CoordsInfo {
|
|
29
|
-
mPackedAxisValues?: any;
|
|
30
|
-
pressure: number;
|
|
31
|
-
size: number;
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
}
|
|
35
|
-
export interface CustomDefinition {
|
|
36
|
-
definitionId: number | null;
|
|
37
|
-
framerateId: number | null;
|
|
38
|
-
bitrateId: number | null;
|
|
39
|
-
}
|
|
40
|
-
export interface PositionOption {
|
|
41
|
-
accuracy?: number | null;
|
|
42
|
-
altitude?: number | null;
|
|
43
|
-
latitude: number | null;
|
|
44
|
-
longitude: number | null;
|
|
45
|
-
speed?: number | null;
|
|
46
|
-
time?: number | null;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export interface TouchInfo {
|
|
2
|
-
pressure: number;
|
|
3
|
-
size: number;
|
|
4
|
-
touchMajor: number;
|
|
5
|
-
touchMinor: number;
|
|
6
|
-
toolMajor: number;
|
|
7
|
-
toolMinor: number;
|
|
8
|
-
}
|
|
9
|
-
export declare enum MediaType {
|
|
10
|
-
AUDIO = 1,
|
|
11
|
-
VIDEO = 2,
|
|
12
|
-
AUDIO_AND_VIDEO = 3
|
|
13
|
-
}
|
|
14
|
-
export declare enum TouchType {
|
|
15
|
-
GESTURE = "gesture",
|
|
16
|
-
GESTURE_SWIPE = "gestureSwipe",
|
|
17
|
-
EVENT_SDK = "eventSdk",
|
|
18
|
-
KEYSTROKE = "keystroke",
|
|
19
|
-
CLIPBOARD = "clipboard",
|
|
20
|
-
INPUT_BOX = "inputBox",
|
|
21
|
-
INPUT_STATE = "inputState",
|
|
22
|
-
RTC_STATS = "rtcStats",
|
|
23
|
-
KICK_OUT_USER = "kickOutUser",
|
|
24
|
-
EQUIPMENT_INFO = "equipmentInfo",
|
|
25
|
-
APP_UNINSTALL = "appUnInstall"
|
|
26
|
-
}
|
|
27
|
-
export declare enum WebSocketEventType {
|
|
28
|
-
PING = "ping",
|
|
29
|
-
BROADCAST_MSG = "broadcastMsg",
|
|
30
|
-
SPECIFIED_MSG = "specifiedMsg",
|
|
31
|
-
OWN_JOIN_ROOM = "ownJoinRoom"
|
|
32
|
-
}
|
|
33
|
-
export declare enum MessageKey {
|
|
34
|
-
VIDEO_AND_AUDIO_CONTROL = "videoAndAudioControl",
|
|
35
|
-
AUDIO_CONTROL = "audioControl",
|
|
36
|
-
MESSAGE = "message",
|
|
37
|
-
INPUT_ADB = "inputAdb",
|
|
38
|
-
EQUIPMENT_INFO = "equipmentInfo",
|
|
39
|
-
REFRESH_UI_TYPE = "refreshUiType",
|
|
40
|
-
INPUT_STATE = "inputState",
|
|
41
|
-
CLIPBOARD = "clipboard",
|
|
42
|
-
ICE_CANDIDATE = "ice_candidate",
|
|
43
|
-
RE_ANSWER = "re_answer",
|
|
44
|
-
OFFER = "offer",
|
|
45
|
-
RE_OFFER = "re_offer",
|
|
46
|
-
ANSWER = "answer",
|
|
47
|
-
START_INJECTION_VIDEO = "startVideoInjection",
|
|
48
|
-
STOP_INJECTION_VIDEO = "stopVideoInjection",
|
|
49
|
-
INJECTION_VIDEO_STATS = "injectionVideoStats",
|
|
50
|
-
CALL_BACK_EVENT = "callBack"
|
|
51
|
-
}
|
|
52
|
-
export declare enum SdkEventType {
|
|
53
|
-
UPDATE_UI_H5 = "updateUiH5",
|
|
54
|
-
INPUT_ADB = "inputAdb",
|
|
55
|
-
INJECTION_CAMERA = "injectionCamera",
|
|
56
|
-
INJECTION_AUDIO = "injectionAudio",
|
|
57
|
-
DEFINITION_UPDATE = "definitionUpdata",
|
|
58
|
-
KEYBOARD_TYPE = "keyBoardType",
|
|
59
|
-
LOCAL_SCREENSHOT = "localScreenshot",
|
|
60
|
-
SDK_LOCATION = "sdkLocation",
|
|
61
|
-
SDK_SENSOR = "sdkSensor",
|
|
62
|
-
GET_CAMERA_STATE = "cameraState"
|
|
63
|
-
}
|
|
64
|
-
export declare enum SensorType {
|
|
65
|
-
GYROSCOPE = "gyroscope",
|
|
66
|
-
GRAVITY = "gravity",
|
|
67
|
-
ACCELERATION = "acceleration"
|
|
68
|
-
}
|
|
69
|
-
export declare enum MediaOperationType {
|
|
70
|
-
OPEN_AUDIO = "openAudio",
|
|
71
|
-
OPEN_VIDEO = "openVideo",
|
|
72
|
-
OPEN_AUDIO_AND_VIDEO = "openAudioAndVideo"
|
|
73
|
-
}
|
|
74
|
-
export declare enum MediaStreamType {
|
|
75
|
-
VIDEO = "video",
|
|
76
|
-
AUDIO = "audio"
|
|
77
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const blobToText: (blob: any) => Promise<unknown>;
|
|
2
|
-
export declare const arrayBufferToText: (buffer: any) => any;
|
|
3
|
-
export declare const checkType: (input: any) => "ArrayBuffer" | "Blob" | "String";
|
|
4
|
-
export declare const isMobile: () => boolean;
|
|
5
|
-
export declare const isTouchDevice: () => boolean;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class VideoElement {
|
|
2
|
-
private masterIdPrefix;
|
|
3
|
-
private remoteUserId;
|
|
4
|
-
private videoDomId;
|
|
5
|
-
private remoteVideoId;
|
|
6
|
-
private containerId;
|
|
7
|
-
private remoteVideo;
|
|
8
|
-
private eventListeners;
|
|
9
|
-
constructor(masterIdPrefix: string, remoteUserId: string);
|
|
10
|
-
getVideoDomId(): string;
|
|
11
|
-
getRemoteVideoId(): string;
|
|
12
|
-
getContainerId(): string;
|
|
13
|
-
getRemoteVideo(): HTMLVideoElement;
|
|
14
|
-
createElements(): HTMLElement;
|
|
15
|
-
private createRemoteVideoElement;
|
|
16
|
-
bindDomEvent(type: string, listener: EventListener): void;
|
|
17
|
-
removeAllEvents(): void;
|
|
18
|
-
private createDivElement;
|
|
19
|
-
private createDiv;
|
|
20
|
-
destroy(): void;
|
|
21
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare class WebGroupRTC {
|
|
2
|
-
private params;
|
|
3
|
-
private pingTimer;
|
|
4
|
-
private callbacks;
|
|
5
|
-
private socket;
|
|
6
|
-
private reconnectAttempts;
|
|
7
|
-
private maxReconnectAttempts;
|
|
8
|
-
private reconnectDelay;
|
|
9
|
-
private sourceArr;
|
|
10
|
-
constructor(params: any, pads: Array<string>, callbacks: any);
|
|
11
|
-
close(): void;
|
|
12
|
-
sendMessage(message: string): void;
|
|
13
|
-
startHeartbeat(): void;
|
|
14
|
-
initSocket(signalServer: string, roomToken: string): void;
|
|
15
|
-
handleReconnect(signalServer: string, roomToken: string): void;
|
|
16
|
-
joinRoom(pads: any): void;
|
|
17
|
-
}
|
|
18
|
-
export default WebGroupRTC;
|