armcloud-rtc 1.5.1 → 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 -145
- package/dist/types/lib/enums.d.ts +0 -8
- package/dist/types/lib/error.d.ts +0 -26
- 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/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,885 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
interface TouchInfo {
|
|
2
|
+
pressure: number;
|
|
3
|
+
size: number;
|
|
4
|
+
touchMajor: number;
|
|
5
|
+
touchMinor: number;
|
|
6
|
+
toolMajor: number;
|
|
7
|
+
toolMinor: number;
|
|
8
|
+
}
|
|
9
|
+
interface CustomDefinition {
|
|
10
|
+
definitionId: number | null;
|
|
11
|
+
framerateId: number | null;
|
|
12
|
+
bitrateId: number | null;
|
|
13
|
+
}
|
|
14
|
+
declare enum KeyboardMode {
|
|
15
|
+
LOCAL = "local",
|
|
16
|
+
PAD = "pad"
|
|
17
|
+
}
|
|
18
|
+
type MediaType$1 = 1 | 2 | 3;
|
|
19
|
+
type RotateType = 0 | 1;
|
|
20
|
+
interface ArmcloudVideoStream {
|
|
21
|
+
resolution?: number;
|
|
22
|
+
frameRate?: number;
|
|
23
|
+
bitrate?: number;
|
|
24
|
+
}
|
|
25
|
+
interface ArmcloudDeviceInfo {
|
|
26
|
+
padCode: string;
|
|
27
|
+
userId: string;
|
|
28
|
+
autoRecoveryTime?: number;
|
|
29
|
+
mediaType?: MediaType$1;
|
|
30
|
+
rotateType?: RotateType;
|
|
31
|
+
keyboard?: KeyboardMode;
|
|
32
|
+
saveCloudClipboard?: boolean;
|
|
33
|
+
allowLocalIMEInCloud?: boolean;
|
|
34
|
+
disableContextMenu?: boolean;
|
|
35
|
+
videoDeviceId?: string;
|
|
36
|
+
audioDeviceId?: string;
|
|
37
|
+
disableLocalIME?: boolean;
|
|
38
|
+
videoStream?: ArmcloudVideoStream;
|
|
39
|
+
}
|
|
40
|
+
interface ArmcloudEngineParams {
|
|
41
|
+
token: string;
|
|
42
|
+
baseUrl: string;
|
|
43
|
+
viewId: string;
|
|
44
|
+
uuid?: string;
|
|
45
|
+
retryCount?: number;
|
|
46
|
+
retryTime?: number;
|
|
47
|
+
isLog?: boolean;
|
|
48
|
+
disable?: boolean;
|
|
49
|
+
isWsProxy?: string;
|
|
50
|
+
manageToken?: string;
|
|
51
|
+
enableMicrophone?: boolean;
|
|
52
|
+
enableCamera?: boolean;
|
|
53
|
+
masterIdPrefix?: string;
|
|
54
|
+
deviceInfo: ArmcloudDeviceInfo;
|
|
55
|
+
callbacks: ArmcloudCallbacks;
|
|
56
|
+
}
|
|
57
|
+
type NetworkQualityLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
58
|
+
type ConnectionStateCode = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
59
|
+
type AutoplayKind = "video" | "audio";
|
|
60
|
+
type StreamIndex = 0 | 1;
|
|
61
|
+
type MediaTypeNum = 1 | 2 | 3;
|
|
62
|
+
type AVCaptureErrorCode = "REPEAT_CAPTURE" | "GET_AUDIO_TRACK_FAILED" | "STREAM_TYPE_NOT_MATCH";
|
|
63
|
+
type UserLeaveReason = 0 | 1 | 2 | 3;
|
|
64
|
+
type InjectVideoType = "startVideoInjection" | "stopVideoInjection";
|
|
65
|
+
interface ProgressEventPayload {
|
|
66
|
+
code: number;
|
|
67
|
+
msg?: string;
|
|
68
|
+
}
|
|
69
|
+
interface InitResult {
|
|
70
|
+
code: string | number;
|
|
71
|
+
msg?: string;
|
|
72
|
+
streamType?: number;
|
|
73
|
+
uuid?: string;
|
|
74
|
+
}
|
|
75
|
+
interface ConnectFailPayload {
|
|
76
|
+
code: number;
|
|
77
|
+
msg?: string;
|
|
78
|
+
}
|
|
79
|
+
interface ConnectionStateChangedPayload {
|
|
80
|
+
state: ConnectionStateCode;
|
|
81
|
+
code?: number;
|
|
82
|
+
msg?: string;
|
|
83
|
+
}
|
|
84
|
+
interface SocketCallbackPayload {
|
|
85
|
+
code: 0 | 1 | -1;
|
|
86
|
+
}
|
|
87
|
+
interface FirstFrameEvent {
|
|
88
|
+
width: number;
|
|
89
|
+
height: number;
|
|
90
|
+
userId: string;
|
|
91
|
+
isScreen: boolean;
|
|
92
|
+
}
|
|
93
|
+
interface ChangeResolutionPayload {
|
|
94
|
+
from: {
|
|
95
|
+
width: number;
|
|
96
|
+
height: number;
|
|
97
|
+
};
|
|
98
|
+
to: {
|
|
99
|
+
width: number;
|
|
100
|
+
height: number;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
interface AutoplayFailedEvent {
|
|
104
|
+
userId?: string;
|
|
105
|
+
kind: AutoplayKind;
|
|
106
|
+
}
|
|
107
|
+
type RotateTypeNum = 0 | 1;
|
|
108
|
+
interface RotateInfo {
|
|
109
|
+
width: number;
|
|
110
|
+
height: number;
|
|
111
|
+
}
|
|
112
|
+
interface AudioErrorEvent {
|
|
113
|
+
code: number;
|
|
114
|
+
msg?: string;
|
|
115
|
+
}
|
|
116
|
+
interface VideoErrorEvent {
|
|
117
|
+
code: number;
|
|
118
|
+
msg?: string;
|
|
119
|
+
}
|
|
120
|
+
interface ErrorMessagePayload {
|
|
121
|
+
code: 0 | 1;
|
|
122
|
+
msg?: string;
|
|
123
|
+
}
|
|
124
|
+
interface RunInformationStats {
|
|
125
|
+
userId: string;
|
|
126
|
+
audioStats: {
|
|
127
|
+
audioLossRate: number;
|
|
128
|
+
receivedKBitrate: number;
|
|
129
|
+
stallCount?: number;
|
|
130
|
+
stallDuration?: number;
|
|
131
|
+
totalRtt: number;
|
|
132
|
+
statsInterval: number;
|
|
133
|
+
rtt: number;
|
|
134
|
+
jitterBufferDelay: number;
|
|
135
|
+
numChannels: number;
|
|
136
|
+
receivedSampleRate: number;
|
|
137
|
+
concealedSamples: number;
|
|
138
|
+
concealmentEvent: number;
|
|
139
|
+
};
|
|
140
|
+
videoStats: {
|
|
141
|
+
width: number;
|
|
142
|
+
height: number;
|
|
143
|
+
videoLossRate: number;
|
|
144
|
+
receivedKBitrate: number;
|
|
145
|
+
decoderOutputFrameRate: number;
|
|
146
|
+
stallCount?: number;
|
|
147
|
+
stallDuration?: number;
|
|
148
|
+
totalRtt: number;
|
|
149
|
+
isScreen: boolean;
|
|
150
|
+
statsInterval: number;
|
|
151
|
+
rtt: number;
|
|
152
|
+
codecType: "H264" | "VP8";
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
interface UserLeaveOrJoinPayload {
|
|
156
|
+
type: "join" | "leave";
|
|
157
|
+
userInfo: {
|
|
158
|
+
userId: string;
|
|
159
|
+
extraInfo?: string;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
interface UserLeaveEvent {
|
|
163
|
+
userId: string;
|
|
164
|
+
reason: UserLeaveReason;
|
|
165
|
+
}
|
|
166
|
+
interface UserJoinedPayload {
|
|
167
|
+
userInfo: {
|
|
168
|
+
userId: string;
|
|
169
|
+
extraInfo?: string;
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
interface GroupControlErrorEvent {
|
|
173
|
+
code: string;
|
|
174
|
+
msg: string;
|
|
175
|
+
}
|
|
176
|
+
interface MonitorOperationEvent {
|
|
177
|
+
actionTime: number;
|
|
178
|
+
actionType: number;
|
|
179
|
+
keyCode: number;
|
|
180
|
+
simulateHeight: number;
|
|
181
|
+
simulateWidth: number;
|
|
182
|
+
swipe: number;
|
|
183
|
+
touchType: string;
|
|
184
|
+
x: number;
|
|
185
|
+
y: number;
|
|
186
|
+
}
|
|
187
|
+
interface TransparentMsgHandler {
|
|
188
|
+
(type: number | string, msg: string): void;
|
|
189
|
+
}
|
|
190
|
+
interface OutputClipperData {
|
|
191
|
+
content: string;
|
|
192
|
+
}
|
|
193
|
+
interface AdbOutputEvent {
|
|
194
|
+
isSuccess: boolean;
|
|
195
|
+
content: string;
|
|
196
|
+
}
|
|
197
|
+
interface InjectVideoResultData {
|
|
198
|
+
isSuccess: boolean;
|
|
199
|
+
content?: string;
|
|
200
|
+
}
|
|
201
|
+
interface MediaDevicesToggleStats {
|
|
202
|
+
type: "media" | "camera" | "microphone";
|
|
203
|
+
enabled: boolean;
|
|
204
|
+
isFront?: boolean;
|
|
205
|
+
}
|
|
206
|
+
interface EquipmentInfoEvent {
|
|
207
|
+
info: string;
|
|
208
|
+
}
|
|
209
|
+
interface SendUserErrorEvent {
|
|
210
|
+
code: string;
|
|
211
|
+
msg: string;
|
|
212
|
+
}
|
|
213
|
+
interface ArmcloudCallbacks {
|
|
214
|
+
onInit?: (result: InitResult) => void;
|
|
215
|
+
onConnectSuccess?: () => void;
|
|
216
|
+
onConnectFail?: (payload: ConnectFailPayload) => void;
|
|
217
|
+
onConnectionStateChanged?: (payload: ConnectionStateChangedPayload) => void;
|
|
218
|
+
onSocketCallback?: (payload: SocketCallbackPayload) => void;
|
|
219
|
+
onRenderedFirstFrame?: (event?: FirstFrameEvent) => void;
|
|
220
|
+
onChangeResolution?: (payload: ChangeResolutionPayload) => void;
|
|
221
|
+
onAutoplayFailed?: (event: AutoplayFailedEvent) => void;
|
|
222
|
+
onBeforeRotate?: (type: RotateTypeNum) => void;
|
|
223
|
+
onChangeRotate?: (type: RotateTypeNum, info: RotateInfo) => void;
|
|
224
|
+
onAudioInit?: () => void;
|
|
225
|
+
onAudioError?: (event: AudioErrorEvent) => void;
|
|
226
|
+
onVideoInit?: () => void;
|
|
227
|
+
onVideoError?: (event: VideoErrorEvent) => void;
|
|
228
|
+
onErrorMessage?: (payload: ErrorMessagePayload) => void;
|
|
229
|
+
onRunInformation?: (stats: any) => void;
|
|
230
|
+
onNetworkQuality?: (uplink: NetworkQualityLevel, downlink: NetworkQualityLevel) => void;
|
|
231
|
+
onProgress?: (payload: ProgressEventPayload) => void;
|
|
232
|
+
onSendUserError?: (event: SendUserErrorEvent) => void;
|
|
233
|
+
onUserJoined?: (payload: UserJoinedPayload) => void;
|
|
234
|
+
onUserLeave?: (event: UserLeaveEvent) => void;
|
|
235
|
+
onUserLeaveOrJoin?: (payload: UserLeaveOrJoinPayload) => void;
|
|
236
|
+
onAutoRecoveryTime?: () => void;
|
|
237
|
+
onMonitorOperation?: (event: MonitorOperationEvent) => void;
|
|
238
|
+
onGroupControlError?: (event: GroupControlErrorEvent) => void;
|
|
239
|
+
onEquipmentInfo?: (event: EquipmentInfoEvent) => void;
|
|
240
|
+
onTransparentMsg?: TransparentMsgHandler;
|
|
241
|
+
onOutputClipper?: (data: OutputClipperData) => void;
|
|
242
|
+
onAdbOutput?: (event: AdbOutputEvent) => void;
|
|
243
|
+
onInjectVideoResult?: (type: InjectVideoType, data: InjectVideoResultData) => void;
|
|
244
|
+
onMediaDevicesToggle?: (stats: MediaDevicesToggleStats) => void;
|
|
245
|
+
}
|
|
246
|
+
interface ArmcloudRtcOptions {
|
|
247
|
+
appId: string;
|
|
248
|
+
roomCode: string;
|
|
249
|
+
roomToken: string;
|
|
250
|
+
signalServer: string;
|
|
251
|
+
stuns: string;
|
|
252
|
+
turns: string;
|
|
253
|
+
token: string;
|
|
254
|
+
uuid: string;
|
|
255
|
+
clientId: string;
|
|
256
|
+
padCode: string;
|
|
257
|
+
userId: string;
|
|
258
|
+
retryCount: number;
|
|
259
|
+
retryTime: number;
|
|
260
|
+
isLog: boolean;
|
|
261
|
+
disable: boolean;
|
|
262
|
+
enableMicrophone: boolean;
|
|
263
|
+
enableCamera: boolean;
|
|
264
|
+
baseUrl: string;
|
|
265
|
+
isWsProxy: boolean;
|
|
266
|
+
manageToken: string;
|
|
267
|
+
masterIdPrefix: string;
|
|
268
|
+
videoStream: ArmcloudVideoStream;
|
|
269
|
+
disableLocalIME: boolean;
|
|
270
|
+
allowLocalIMEInCloud: boolean;
|
|
271
|
+
autoRecoveryTime: number;
|
|
272
|
+
mediaType: number;
|
|
273
|
+
rotateType?: RotateDirection;
|
|
274
|
+
keyboard: KeyboardMode;
|
|
275
|
+
disableContextMenu: boolean;
|
|
276
|
+
saveCloudClipboard: boolean;
|
|
277
|
+
videoDeviceId?: string;
|
|
278
|
+
audioDeviceId?: string;
|
|
279
|
+
accessInfo?: string;
|
|
280
|
+
}
|
|
281
|
+
declare enum EquipmentInfoType {
|
|
282
|
+
APP = "app",
|
|
283
|
+
ATTR = "attr"
|
|
284
|
+
}
|
|
285
|
+
declare enum InjectStreamStatusType {
|
|
286
|
+
VIDEO = "video",
|
|
287
|
+
CAMERA = "camera",
|
|
288
|
+
AUDIO = "audio"
|
|
289
|
+
}
|
|
290
|
+
declare enum MediaDeviceType {
|
|
291
|
+
MEDIA = "media",
|
|
292
|
+
CAMERA = "camera",
|
|
293
|
+
MICROPHONE = "microphone"
|
|
294
|
+
}
|
|
295
|
+
declare enum AndroidKeyCode {
|
|
296
|
+
KEYCODE_UNKNOWN = 0,
|
|
297
|
+
KEYCODE_HOME = 172,
|
|
298
|
+
KEYCODE_BACK = 158,
|
|
299
|
+
KEYCODE_CALL = 5,
|
|
300
|
+
KEYCODE_ENDCALL = 6,
|
|
301
|
+
KEYCODE_0 = 7,
|
|
302
|
+
KEYCODE_1 = 8,
|
|
303
|
+
KEYCODE_2 = 9,
|
|
304
|
+
KEYCODE_3 = 10,
|
|
305
|
+
KEYCODE_4 = 11,
|
|
306
|
+
KEYCODE_5 = 12,
|
|
307
|
+
KEYCODE_6 = 13,
|
|
308
|
+
KEYCODE_7 = 14,
|
|
309
|
+
KEYCODE_8 = 15,
|
|
310
|
+
KEYCODE_9 = 16,
|
|
311
|
+
KEYCODE_STAR = 17,
|
|
312
|
+
KEYCODE_POUND = 18,
|
|
313
|
+
KEYCODE_DPAD_UP = 19,
|
|
314
|
+
KEYCODE_DPAD_DOWN = 20,
|
|
315
|
+
KEYCODE_DPAD_LEFT = 21,
|
|
316
|
+
KEYCODE_DPAD_RIGHT = 22,
|
|
317
|
+
KEYCODE_DPAD_CENTER = 23,
|
|
318
|
+
KEYCODE_VOLUME_UP = 58,
|
|
319
|
+
KEYCODE_VOLUME_DOWN = 59,
|
|
320
|
+
KEYCODE_POWER = 26,
|
|
321
|
+
KEYCODE_CAMERA = 27,
|
|
322
|
+
KEYCODE_CLEAR = 28,
|
|
323
|
+
KEYCODE_MENU = 139,
|
|
324
|
+
KEYCODE_NOTIFICATION = 83,
|
|
325
|
+
KEYCODE_SEARCH = 84,
|
|
326
|
+
KEYCODE_MEDIA_PLAY_PAUSE = 85,
|
|
327
|
+
KEYCODE_MEDIA_STOP = 86,
|
|
328
|
+
KEYCODE_MEDIA_PREVIOUS = 87,
|
|
329
|
+
KEYCODE_MEDIA_NEXT = 88,
|
|
330
|
+
KEYCODE_MEDIA_REWIND = 89,
|
|
331
|
+
KEYCODE_MEDIA_FAST_FORWARD = 90,
|
|
332
|
+
KEYCODE_FOCUS = 80,
|
|
333
|
+
KEYCODE_ENTER = 66,
|
|
334
|
+
KEYCODE_SPACE = 62,
|
|
335
|
+
KEYCODE_DEL = 67,
|
|
336
|
+
KEYCODE_TAB = 61,
|
|
337
|
+
KEYCODE_ESCAPE = 111
|
|
338
|
+
}
|
|
339
|
+
declare enum RotateDirection {
|
|
340
|
+
PORTRAIT = 0,
|
|
341
|
+
LANDSCAPE = 1
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
declare enum MediaType {
|
|
345
|
+
AUDIO = 1,
|
|
346
|
+
VIDEO = 2,
|
|
347
|
+
AUDIO_AND_VIDEO = 3
|
|
348
|
+
}
|
|
349
|
+
declare enum MessageKey {
|
|
350
|
+
VIDEO_AND_AUDIO_CONTROL = "videoAndAudioControl",
|
|
351
|
+
AUDIO_CONTROL = "audioControl",
|
|
352
|
+
MESSAGE = "message",
|
|
353
|
+
INPUT_ADB = "inputAdb",
|
|
354
|
+
EQUIPMENT_INFO = "equipmentInfo",
|
|
355
|
+
REFRESH_UI_TYPE = "refreshUiType",
|
|
356
|
+
INPUT_STATE = "inputState",
|
|
357
|
+
CLIPBOARD = "clipboard",
|
|
358
|
+
ICE_CANDIDATE = "ice_candidate",
|
|
359
|
+
RE_ANSWER = "re_answer",
|
|
360
|
+
OFFER = "offer",
|
|
361
|
+
RE_OFFER = "re_offer",
|
|
362
|
+
ANSWER = "answer",
|
|
363
|
+
START_INJECTION_VIDEO = "startVideoInjection",
|
|
364
|
+
STOP_INJECTION_VIDEO = "stopVideoInjection",
|
|
365
|
+
INJECTION_VIDEO_STATS = "injectionVideoStats",
|
|
366
|
+
CALL_BACK_EVENT = "callBack",
|
|
367
|
+
RESET_DENSITY = "resetDensity",
|
|
368
|
+
UPDATE_DENSITY = "updateDensity",
|
|
369
|
+
DEFINITION = "definition",
|
|
370
|
+
GET_CAMERA_STATE = "cameraState",
|
|
371
|
+
SHORTCUT_KEY = "shortcutKey"
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare class customRtc {
|
|
375
|
+
private initDomId;
|
|
376
|
+
private videoDomId;
|
|
377
|
+
private hasPushDown;
|
|
378
|
+
private enableMicrophone;
|
|
379
|
+
private enableCamera;
|
|
380
|
+
private screenShotInstance;
|
|
381
|
+
private isFirstRotate;
|
|
382
|
+
private remoteResolution;
|
|
383
|
+
private touchConfig;
|
|
384
|
+
private touchInfo;
|
|
385
|
+
private simulateTouchInfo;
|
|
386
|
+
private options;
|
|
387
|
+
private engine;
|
|
388
|
+
private groupEngine;
|
|
389
|
+
private groupRtc;
|
|
390
|
+
private inputElement;
|
|
391
|
+
private promiseMap;
|
|
392
|
+
roomMessage: any;
|
|
393
|
+
autoRecoveryTimer: any;
|
|
394
|
+
isFirstFrame: boolean;
|
|
395
|
+
firstFrameCount: number;
|
|
396
|
+
rotation: number;
|
|
397
|
+
isGroupControl: boolean;
|
|
398
|
+
enterkeyhintObj: {
|
|
399
|
+
2: string;
|
|
400
|
+
3: string;
|
|
401
|
+
4: string;
|
|
402
|
+
5: string;
|
|
403
|
+
6: string;
|
|
404
|
+
7: string;
|
|
405
|
+
};
|
|
406
|
+
callbacks: any;
|
|
407
|
+
remoteUserId: string;
|
|
408
|
+
private rotateType;
|
|
409
|
+
private videoDeviceId;
|
|
410
|
+
private audioDeviceId;
|
|
411
|
+
private isCameraInject;
|
|
412
|
+
private isMicrophoneInject;
|
|
413
|
+
private cameraResolution;
|
|
414
|
+
constructor(viewId: string, params: any, callbacks: any);
|
|
415
|
+
isSupported(): Promise<boolean>;
|
|
416
|
+
setMicrophone(val: boolean): void;
|
|
417
|
+
setCamera(val: boolean): void;
|
|
418
|
+
setVideoDeviceId(val: string): Promise<never>;
|
|
419
|
+
setAudioDeviceId(val: string): Promise<any>;
|
|
420
|
+
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
421
|
+
triggerRecoveryTimeCallback(): void;
|
|
422
|
+
setVideoEncoder(width: number, height: number): void;
|
|
423
|
+
createEngine(): Promise<void>;
|
|
424
|
+
createGroupEngine(pads?: any[], config?: any): Promise<void>;
|
|
425
|
+
destroyEngine(): void;
|
|
426
|
+
muted(): void;
|
|
427
|
+
unmuted(): void;
|
|
428
|
+
sendGroupInputString(pads: any, strs: any): void;
|
|
429
|
+
sendGroupInputClipper(pads: any, strs: any): void;
|
|
430
|
+
startPlay(): void;
|
|
431
|
+
sendGroupRoomMessage(message: string): Promise<any>;
|
|
432
|
+
getMsgTemplate(touchType: string, content: object): string;
|
|
433
|
+
getEquipmentInfo(type: "app" | "attr"): void;
|
|
434
|
+
getInjectStreamStatus(type: "video" | "camera" | "audio", timeout?: number): Promise<unknown>;
|
|
435
|
+
appUnInstall(pkgNames: Array<string>): void;
|
|
436
|
+
private notifyInject;
|
|
437
|
+
startMediaStream(mediaType: MediaType, msgData?: any): Promise<{
|
|
438
|
+
audio: any;
|
|
439
|
+
video: any;
|
|
440
|
+
}>;
|
|
441
|
+
stopMediaStream(mediaType: MediaType): Promise<void>;
|
|
442
|
+
private cameraInject;
|
|
443
|
+
private microphoneInject;
|
|
444
|
+
sendUserMessage(userId: string, message: string, notSendInGroups?: boolean): Promise<unknown>;
|
|
445
|
+
kickItOutRoom(pads: Array<string>): void;
|
|
446
|
+
joinGroupRoom(pads: any): void;
|
|
447
|
+
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
448
|
+
onUserLeave(): void;
|
|
449
|
+
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
450
|
+
getCameraState(isRetry?: boolean): Promise<void>;
|
|
451
|
+
updateUiH5(isRetry?: boolean): Promise<void>;
|
|
452
|
+
triggerClickEvent(options: {
|
|
453
|
+
x: number;
|
|
454
|
+
y: number;
|
|
455
|
+
width: number;
|
|
456
|
+
height: number;
|
|
457
|
+
}, forwardOff?: boolean): void;
|
|
458
|
+
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
459
|
+
x: number;
|
|
460
|
+
y: number;
|
|
461
|
+
width: number;
|
|
462
|
+
height: number;
|
|
463
|
+
}, forwardOff?: boolean): void;
|
|
464
|
+
onUserJoined(): void;
|
|
465
|
+
onRemoteVideoFirstFrame(): void;
|
|
466
|
+
stop(): Promise<never>;
|
|
467
|
+
onUserPublishStream(): void;
|
|
468
|
+
sendShakeInfo(time: any): void;
|
|
469
|
+
checkInputState(msg: any): void;
|
|
470
|
+
onRoomMessageReceived(): void;
|
|
471
|
+
onUserMessageReceived(): void;
|
|
472
|
+
sendInputClipper(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
473
|
+
sendInputString(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
474
|
+
setStreamConfig(config: CustomDefinition, forwardOff?: boolean): void;
|
|
475
|
+
pauseAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
476
|
+
resumeAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
477
|
+
setRemoteVideoRotation(rotation: number): Promise<void>;
|
|
478
|
+
setScreenResolution(options: {
|
|
479
|
+
width: number;
|
|
480
|
+
height: number;
|
|
481
|
+
dpi: number;
|
|
482
|
+
type: "resetDensity" | "updateDensity";
|
|
483
|
+
}, forwardOff?: boolean): void;
|
|
484
|
+
subscribeStream(mediaType: MediaType): Promise<void>;
|
|
485
|
+
setScreenshotRotation(rotation?: number): void;
|
|
486
|
+
takeScreenshot(rotation?: number): void;
|
|
487
|
+
resizeScreenshot(width: number, height: number): void;
|
|
488
|
+
showScreenShot(): void;
|
|
489
|
+
hideScreenShot(): void;
|
|
490
|
+
clearScreenShot(): void;
|
|
491
|
+
unsubscribeStream(mediaType: MediaType): Promise<void>;
|
|
492
|
+
saveScreenShotToLocal(): Promise<ImageData>;
|
|
493
|
+
saveScreenShotToRemote(): void;
|
|
494
|
+
setPhoneRotation(type: number): void;
|
|
495
|
+
getRotateType(): number;
|
|
496
|
+
private initRotateScreen;
|
|
497
|
+
rotateScreen(type: number): Promise<void>;
|
|
498
|
+
triggerKeyboardShortcut(metaState: number | string, keyCode: number | string, forwardOff?: boolean): void;
|
|
499
|
+
setGPS(longitude: number, latitude: number): void;
|
|
500
|
+
executeAdbCommand(command: string, forwardOff?: boolean): void;
|
|
501
|
+
setKeyboardStyle(keyBoardType: KeyboardMode): void;
|
|
502
|
+
onCheckInputState(): Promise<void>;
|
|
503
|
+
setAutoRecycleTime(second: number): void;
|
|
504
|
+
getAutoRecycleTime(): any;
|
|
505
|
+
sendCommand(command: string, forwardOff?: boolean): void;
|
|
506
|
+
injectVideoStream(type: "startVideoInjection" | "stopVideoInjection", options: any, timeout?: number, forwardOff?: boolean): Promise<unknown>;
|
|
507
|
+
increaseVolume(forwardOff?: boolean): void;
|
|
508
|
+
decreaseVolume(forwardOff?: boolean): void;
|
|
509
|
+
saveCloudClipboard(flag: boolean): void;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
declare class WebRTC {
|
|
513
|
+
private initDomId;
|
|
514
|
+
private videoDomId;
|
|
515
|
+
private remoteVideoContainerId;
|
|
516
|
+
private remoteVideoId;
|
|
517
|
+
private screenShotInstance;
|
|
518
|
+
private pingTimer;
|
|
519
|
+
private hasPushDown;
|
|
520
|
+
private refreshUiMsgNumber;
|
|
521
|
+
private isVideoFirstFrame;
|
|
522
|
+
private enableMicrophone;
|
|
523
|
+
private enableCamera;
|
|
524
|
+
private videoDeviceId;
|
|
525
|
+
private audioDeviceId;
|
|
526
|
+
private isCameraInject;
|
|
527
|
+
private isMicrophoneInject;
|
|
528
|
+
private promiseMap;
|
|
529
|
+
private remoteResolution;
|
|
530
|
+
private roomMessage;
|
|
531
|
+
private options;
|
|
532
|
+
private socket;
|
|
533
|
+
private retryCount;
|
|
534
|
+
private retryCountBackup;
|
|
535
|
+
private retryTime;
|
|
536
|
+
private remotePc;
|
|
537
|
+
private dataChannel;
|
|
538
|
+
private remoteUserId;
|
|
539
|
+
private inputElement;
|
|
540
|
+
private autoRecoveryTimer;
|
|
541
|
+
private runInfoTimer;
|
|
542
|
+
private touchConfig;
|
|
543
|
+
private touchInfo;
|
|
544
|
+
enterkeyhintObj: {
|
|
545
|
+
2: string;
|
|
546
|
+
3: string;
|
|
547
|
+
4: string;
|
|
548
|
+
5: string;
|
|
549
|
+
6: string;
|
|
550
|
+
7: string;
|
|
551
|
+
};
|
|
552
|
+
private socketParams;
|
|
553
|
+
private callbacks;
|
|
554
|
+
private videoStreams;
|
|
555
|
+
private audioStreams;
|
|
556
|
+
private videoSenders;
|
|
557
|
+
private audioSenders;
|
|
558
|
+
private senderVideoTracks;
|
|
559
|
+
private senderAudioTracks;
|
|
560
|
+
private isGroupControl;
|
|
561
|
+
private groupRtc;
|
|
562
|
+
private groupPads;
|
|
563
|
+
private masterIdPrefix;
|
|
564
|
+
private stopOperation;
|
|
565
|
+
private videoElement;
|
|
566
|
+
constructor(viewId: string, params: ArmcloudRtcOptions, callbacks: ArmcloudCallbacks);
|
|
567
|
+
private decryptAES;
|
|
568
|
+
private getMsgTemplate;
|
|
569
|
+
getEquipmentInfo(type: "app" | "attr"): void;
|
|
570
|
+
appUnInstall(pkgNames: Array<string>): void;
|
|
571
|
+
triggerKeyboardShortcut(metaState: number | string, keyCode: number | string, forwardOff?: boolean): void;
|
|
572
|
+
setScreenshotRotation(rotation?: number): void;
|
|
573
|
+
takeScreenshot(rotation?: number): void;
|
|
574
|
+
resizeScreenshot(width: number, height: number): void;
|
|
575
|
+
showScreenShot(): void;
|
|
576
|
+
hideScreenShot(): void;
|
|
577
|
+
clearScreenShot(): void;
|
|
578
|
+
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
579
|
+
private getMediaStream;
|
|
580
|
+
setVideoDeviceId(val: string): Promise<void>;
|
|
581
|
+
setAudioDeviceId(val: string): Promise<void>;
|
|
582
|
+
private captureVideo;
|
|
583
|
+
getRotateType(): RotateDirection;
|
|
584
|
+
private captureAudio;
|
|
585
|
+
private stopTracksAndStreams;
|
|
586
|
+
private smoothTrackReplace;
|
|
587
|
+
private startHeartbeat;
|
|
588
|
+
private microphoneInject;
|
|
589
|
+
private cameraInject;
|
|
590
|
+
startMediaStream(mediaType: MediaType, msgData?: any): Promise<void>;
|
|
591
|
+
private notifyInject;
|
|
592
|
+
setScreenResolution(options: {
|
|
593
|
+
width: number;
|
|
594
|
+
height: number;
|
|
595
|
+
dpi: number;
|
|
596
|
+
type: MessageKey.RESET_DENSITY | MessageKey.UPDATE_DENSITY;
|
|
597
|
+
}, forwardOff?: boolean): void;
|
|
598
|
+
triggerClickEvent(options: {
|
|
599
|
+
x: number;
|
|
600
|
+
y: number;
|
|
601
|
+
width: number;
|
|
602
|
+
height: number;
|
|
603
|
+
}, forwardOff?: boolean): void;
|
|
604
|
+
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
605
|
+
x: number;
|
|
606
|
+
y: number;
|
|
607
|
+
width: number;
|
|
608
|
+
height: number;
|
|
609
|
+
}, forwardOff?: boolean): void;
|
|
610
|
+
stopMediaStream(mediaType: MediaType): Promise<void>;
|
|
611
|
+
private setupWebSocket;
|
|
612
|
+
muted(): void;
|
|
613
|
+
unmuted(): void;
|
|
614
|
+
startPlay(): void;
|
|
615
|
+
private sendGroupMag;
|
|
616
|
+
kickItOutRoom(pads: any): void;
|
|
617
|
+
joinGroupRoom(pads: any): void;
|
|
618
|
+
private createWebGroupRtc;
|
|
619
|
+
private handleVideoWheel;
|
|
620
|
+
private handleVideoMouseleave;
|
|
621
|
+
private handleVideoMousedown;
|
|
622
|
+
private handleVideoMousemove;
|
|
623
|
+
private handleVideoMouseup;
|
|
624
|
+
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
625
|
+
private setupPeerConnectionEvents;
|
|
626
|
+
private setupDataChannelEvents;
|
|
627
|
+
private setupTouchEvents;
|
|
628
|
+
private sendOffer;
|
|
629
|
+
private receiveOffer;
|
|
630
|
+
getInjectStreamStatus(type: "video" | "camera" | "audio", timeout?: number): Promise<unknown>;
|
|
631
|
+
injectVideoStream(type: MessageKey.START_INJECTION_VIDEO | MessageKey.STOP_INJECTION_VIDEO, options: any, timeout?: number, forwardOff?: boolean): Promise<unknown>;
|
|
632
|
+
private getCameraState;
|
|
633
|
+
private receiveAnswer;
|
|
634
|
+
private negotiateOffer;
|
|
635
|
+
private sendAnswer;
|
|
636
|
+
private renderedFirstFrame;
|
|
637
|
+
subscribeStream(mediaType: MediaType): Promise<void>;
|
|
638
|
+
executeAdbCommand(command: string): void;
|
|
639
|
+
unsubscribeStream(mediaType: MediaType): Promise<void>;
|
|
640
|
+
private handleMediaPlay;
|
|
641
|
+
private waitForFirstFrameRendered;
|
|
642
|
+
private stopOperations;
|
|
643
|
+
private close;
|
|
644
|
+
private destroy;
|
|
645
|
+
stop(): void;
|
|
646
|
+
private getStats;
|
|
647
|
+
isSupported(): boolean;
|
|
648
|
+
private triggerRecoveryTimeCallback;
|
|
649
|
+
sendUserMessage(message: string, notRecycling?: boolean): Promise<void>;
|
|
650
|
+
setMicrophone(val: boolean): void;
|
|
651
|
+
setCamera(val: boolean): void;
|
|
652
|
+
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
653
|
+
private onRoomMessageReceived;
|
|
654
|
+
sendInputClipper(inputStr: string): Promise<void>;
|
|
655
|
+
sendGroupInputClipper(pads: any, strs: any): void;
|
|
656
|
+
sendGroupInputString(pads: any, strs: any): void;
|
|
657
|
+
sendInputString(inputStr: string): Promise<void>;
|
|
658
|
+
sendShakeInfo(time: any): void;
|
|
659
|
+
setStreamConfig(config: CustomDefinition): void;
|
|
660
|
+
private handleSendData;
|
|
661
|
+
pauseAllSubscribedStream(mediaType?: number): void;
|
|
662
|
+
resumeAllSubscribedStream(mediaType?: number): void;
|
|
663
|
+
saveScreenShotToLocal(): Promise<unknown>;
|
|
664
|
+
saveScreenShotToRemote(): void;
|
|
665
|
+
setPhoneRotation(type: RotateDirection): void;
|
|
666
|
+
rotateScreen(type: RotateDirection): Promise<void>;
|
|
667
|
+
setGPS(longitude: number, latitude: number): void;
|
|
668
|
+
setKeyboardStyle(keyBoardType: KeyboardMode): void;
|
|
669
|
+
onCheckInputState(): Promise<void>;
|
|
670
|
+
setAutoRecycleTime(second: number): void;
|
|
671
|
+
getAutoRecycleTime(): number;
|
|
672
|
+
sendCommand(command: string): void;
|
|
673
|
+
private goAppUpPage;
|
|
674
|
+
private goAppHome;
|
|
675
|
+
private goAppMenu;
|
|
676
|
+
increaseVolume(): void;
|
|
677
|
+
decreaseVolume(): void;
|
|
678
|
+
saveCloudClipboard(flag: boolean): void;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
declare class tcgRtc {
|
|
682
|
+
private initDomId;
|
|
683
|
+
private options;
|
|
684
|
+
private callbacks;
|
|
685
|
+
private TCGSDK;
|
|
686
|
+
private androidInstance;
|
|
687
|
+
private remoteUserId;
|
|
688
|
+
private abortController;
|
|
689
|
+
private dataChannel;
|
|
690
|
+
private groupDataChannel;
|
|
691
|
+
private isGroupControl;
|
|
692
|
+
private groupPads;
|
|
693
|
+
private promiseMap;
|
|
694
|
+
private isCameraInject;
|
|
695
|
+
private isMicrophoneInject;
|
|
696
|
+
private enableCamera;
|
|
697
|
+
private enableMicrophone;
|
|
698
|
+
private videoDeviceId;
|
|
699
|
+
private audioDeviceId;
|
|
700
|
+
private inputElement;
|
|
701
|
+
private rotateType;
|
|
702
|
+
private currentCaptureRotation;
|
|
703
|
+
private lastStreamResolution;
|
|
704
|
+
private remoteDesktopResolution;
|
|
705
|
+
private firstRemoteDesktopResolution;
|
|
706
|
+
private enterkeyhintObj;
|
|
707
|
+
constructor(initDomId: string, options: ArmcloudRtcOptions, callbacks: ArmcloudCallbacks);
|
|
708
|
+
private getMsgTemplate;
|
|
709
|
+
setMicrophone(val: boolean): void;
|
|
710
|
+
setCamera(val: boolean): void;
|
|
711
|
+
setVideoDeviceId(val: string): Promise<never>;
|
|
712
|
+
setAudioDeviceId(val: string): Promise<never>;
|
|
713
|
+
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
714
|
+
triggerRecoveryTimeCallback(): void;
|
|
715
|
+
setVideoEncoder(width: number, height: number): void;
|
|
716
|
+
muted(): void;
|
|
717
|
+
getRequestId(): string;
|
|
718
|
+
unmuted(): void;
|
|
719
|
+
startPlay(): void;
|
|
720
|
+
sendGroupRoomMessage(message: string): Promise<void>;
|
|
721
|
+
getEquipmentInfo(type: EquipmentInfoType): void;
|
|
722
|
+
getInjectStreamStatus(type: InjectStreamStatusType, timeout?: number): Promise<unknown>;
|
|
723
|
+
appUnInstall(pkgNames: Array<string>): void;
|
|
724
|
+
private notifyInject;
|
|
725
|
+
startMediaStream(mediaType: MediaType, msgData?: any): Promise<void>;
|
|
726
|
+
stopMediaStream(mediaType: MediaType): Promise<void>;
|
|
727
|
+
private cameraInject;
|
|
728
|
+
private microphoneInject;
|
|
729
|
+
kickItOutRoom(pads: Array<string>): void;
|
|
730
|
+
private getAndroidInstanceToken;
|
|
731
|
+
joinGroupRoom(pads: Array<string>): void;
|
|
732
|
+
private onRemoteVideoFirstFrame;
|
|
733
|
+
private setupInputElement;
|
|
734
|
+
private getRemoteInputState;
|
|
735
|
+
private syncInputFocusState;
|
|
736
|
+
private matchResolution;
|
|
737
|
+
private setDomResolution;
|
|
738
|
+
private setupStreamResolution;
|
|
739
|
+
private setMediaStreamRender;
|
|
740
|
+
private setupSDK;
|
|
741
|
+
setPhoneRotation(type: RotateDirection): void;
|
|
742
|
+
private triggerChangeRotateEvent;
|
|
743
|
+
private screenRotation;
|
|
744
|
+
private setupDataChannel;
|
|
745
|
+
private sendUserMessage;
|
|
746
|
+
sendGroupInputString(pads: any, strs: any): void;
|
|
747
|
+
sendGroupInputClipper(pads: any, strs: any): void;
|
|
748
|
+
executeAdbCommand(command: string, forwardOff?: boolean): void;
|
|
749
|
+
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
750
|
+
onUserLeave(): void;
|
|
751
|
+
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
752
|
+
private getCameraState;
|
|
753
|
+
triggerClickEvent(options: {
|
|
754
|
+
x: number;
|
|
755
|
+
y: number;
|
|
756
|
+
width: number;
|
|
757
|
+
height: number;
|
|
758
|
+
}, forwardOff?: boolean): void;
|
|
759
|
+
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
760
|
+
x: number;
|
|
761
|
+
y: number;
|
|
762
|
+
width: number;
|
|
763
|
+
height: number;
|
|
764
|
+
}, forwardOff?: boolean): void;
|
|
765
|
+
stop(): Promise<void>;
|
|
766
|
+
sendShakeInfo(time: any): void;
|
|
767
|
+
sendInputClipper(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
768
|
+
sendInputString(inputStr: string, forwardOff?: boolean): Promise<void>;
|
|
769
|
+
setStreamConfig(config: CustomDefinition): void;
|
|
770
|
+
setScreenResolution(options: {
|
|
771
|
+
width: number;
|
|
772
|
+
height: number;
|
|
773
|
+
dpi: number;
|
|
774
|
+
type: MessageKey.RESET_DENSITY | MessageKey.UPDATE_DENSITY;
|
|
775
|
+
}, forwardOff?: boolean): Promise<void>;
|
|
776
|
+
subscribeStream(mediaType: MediaType): Promise<void>;
|
|
777
|
+
setScreenshotRotation(rotation?: number): void;
|
|
778
|
+
takeScreenshot(rotation?: number): void;
|
|
779
|
+
resizeScreenshot(width: number, height: number): void;
|
|
780
|
+
showScreenShot(): void;
|
|
781
|
+
hideScreenShot(): void;
|
|
782
|
+
clearScreenShot(): void;
|
|
783
|
+
unsubscribeStream(mediaType: MediaType): Promise<void>;
|
|
784
|
+
saveScreenShotToLocal(): Promise<void>;
|
|
785
|
+
saveScreenShotToRemote(): void;
|
|
786
|
+
getRotateType(): RotateDirection;
|
|
787
|
+
setGPS(longitude: number, latitude: number): void;
|
|
788
|
+
setKeyboardStyle(keyBoardType: KeyboardMode): void;
|
|
789
|
+
setAutoRecycleTime(second: number): void;
|
|
790
|
+
getAutoRecycleTime(): void;
|
|
791
|
+
sendCommand(command: string): void;
|
|
792
|
+
triggerKeyboardShortcut(metaState: number | string, keyCode: number | string, forwardOff?: boolean): void;
|
|
793
|
+
injectVideoStream(type: MessageKey.START_INJECTION_VIDEO | MessageKey.STOP_INJECTION_VIDEO, options: any, timeout?: number): Promise<unknown>;
|
|
794
|
+
increaseVolume(): void;
|
|
795
|
+
decreaseVolume(): void;
|
|
796
|
+
saveCloudClipboard(flag: boolean): void;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare class ArmcloudEngine {
|
|
800
|
+
version: string;
|
|
801
|
+
rtcInstance: customRtc | WebRTC | tcgRtc | null;
|
|
802
|
+
rtcOptions: ArmcloudRtcOptions | null;
|
|
803
|
+
callbacks: ArmcloudCallbacks | null;
|
|
804
|
+
streamType: number | null;
|
|
805
|
+
private axiosSource;
|
|
806
|
+
constructor(params: ArmcloudEngineParams);
|
|
807
|
+
static isSupported(): boolean;
|
|
808
|
+
triggerKeyboardShortcut(metaState: number | string, actionKey: number | string, forwardOff?: boolean): void;
|
|
809
|
+
setupInitConfig(params: ArmcloudEngineParams): void;
|
|
810
|
+
setupCallbacks(params: ArmcloudEngineParams): void;
|
|
811
|
+
setMonitorOperation(isMonitor: boolean, forwardOff?: boolean): void;
|
|
812
|
+
getInjectStreamStatus(type: InjectStreamStatusType, timeout?: number): Promise<unknown>;
|
|
813
|
+
generateUUID(): string;
|
|
814
|
+
getRequestId(): any;
|
|
815
|
+
triggerClickEvent(options: {
|
|
816
|
+
x: number;
|
|
817
|
+
y: number;
|
|
818
|
+
width: number;
|
|
819
|
+
height: number;
|
|
820
|
+
}, forwardOff?: boolean): void;
|
|
821
|
+
triggerPointerEvent(action: 0 | 1 | 2, options: {
|
|
822
|
+
x: number;
|
|
823
|
+
y: number;
|
|
824
|
+
width: number;
|
|
825
|
+
height: number;
|
|
826
|
+
}, forwardOff?: boolean): void;
|
|
827
|
+
setMicrophone(val: boolean): void;
|
|
828
|
+
setCamera(val: boolean): void;
|
|
829
|
+
startPlay(): void;
|
|
830
|
+
setViewSize(width: number, height: number, rotateType?: 0 | 1): void;
|
|
831
|
+
start(isGroupControl?: boolean, pads?: any[]): void;
|
|
832
|
+
joinGroupRoom(pads?: any[]): void;
|
|
833
|
+
kickItOutRoom(pads?: any[]): void;
|
|
834
|
+
stop(): Promise<void>;
|
|
835
|
+
muted(): void;
|
|
836
|
+
unmuted(): void;
|
|
837
|
+
appUnInstall(pkgNames: Array<string>): void;
|
|
838
|
+
getEquipmentInfo(type: EquipmentInfoType): void;
|
|
839
|
+
setVideoDeviceId(val: string): void;
|
|
840
|
+
setAudioDeviceId(val: string): void;
|
|
841
|
+
sendInputClipper(inputStr: string, forwardOff?: boolean): void;
|
|
842
|
+
sendGroupInputClipper(pads: any, strs: any): void;
|
|
843
|
+
sendGroupInputString(pads: any, strs: any): void;
|
|
844
|
+
sendInputString(inputStr: string, forwardOff?: boolean): void;
|
|
845
|
+
setStreamConfig(config: CustomDefinition, forwardOff?: boolean): void;
|
|
846
|
+
pauseAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
847
|
+
resumeAllSubscribedStream(mediaType?: number): Promise<void>;
|
|
848
|
+
subscribeStream(mediaType?: number): Promise<void>;
|
|
849
|
+
unsubscribeStream(mediaType?: number): Promise<void>;
|
|
850
|
+
saveScreenShotToLocal(): Promise<unknown>;
|
|
851
|
+
setScreenResolution(options: {
|
|
852
|
+
width: number;
|
|
853
|
+
height: number;
|
|
854
|
+
dpi: number;
|
|
855
|
+
type: MessageKey.RESET_DENSITY | MessageKey.UPDATE_DENSITY;
|
|
856
|
+
}, forwardOff?: boolean): void;
|
|
857
|
+
saveScreenShotToRemote(): void;
|
|
858
|
+
resizeScreenshot(width: number, height: number): void;
|
|
859
|
+
showScreenShot(): void;
|
|
860
|
+
hideScreenShot(): void;
|
|
861
|
+
setScreenshotRotation(rotation?: number): void;
|
|
862
|
+
takeScreenshot(rotation?: number): void;
|
|
863
|
+
clearScreenShot(): void;
|
|
864
|
+
setPhoneRotation(type: RotateDirection): void;
|
|
865
|
+
setGPS(longitude: number, latitude: number): void;
|
|
866
|
+
executeAdbCommand(command: string, forwardOff?: boolean): void;
|
|
867
|
+
setKeyboardStyle(keyBoardType: KeyboardMode): void;
|
|
868
|
+
setAutoRecycleTime(second: number): void;
|
|
869
|
+
getAutoRecycleTime(): any;
|
|
870
|
+
sendCommand(command: string, forwardOff?: boolean): void;
|
|
871
|
+
increaseVolume(forwardOff?: boolean): void;
|
|
872
|
+
decreaseVolume(forwardOff?: boolean): void;
|
|
873
|
+
saveCloudClipboard(flag: boolean): void;
|
|
874
|
+
startMediaStream(mediaType: MediaType): Promise<void> | Promise<{
|
|
875
|
+
audio: any;
|
|
876
|
+
video: any;
|
|
877
|
+
}>;
|
|
878
|
+
stopMediaStream(mediaType: MediaType): Promise<void>;
|
|
879
|
+
injectVideoStream(type: MessageKey.START_INJECTION_VIDEO | MessageKey.STOP_INJECTION_VIDEO, options?: any, timeout?: number, forwardOff?: boolean): Promise<unknown>;
|
|
880
|
+
sendShake(time?: number): void;
|
|
881
|
+
getRotateType(): number;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export { AndroidKeyCode, ArmcloudEngine, EquipmentInfoType, InjectStreamStatusType, KeyboardMode, MediaDeviceType, RotateDirection };
|
|
885
|
+
export type { AVCaptureErrorCode, AdbOutputEvent, ArmcloudCallbacks, ArmcloudDeviceInfo, ArmcloudEngineParams, ArmcloudRtcOptions, ArmcloudVideoStream, AudioErrorEvent, AutoplayFailedEvent, AutoplayKind, ChangeResolutionPayload, ConnectFailPayload, ConnectionStateChangedPayload, ConnectionStateCode, CustomDefinition, EquipmentInfoEvent, ErrorMessagePayload, FirstFrameEvent, GroupControlErrorEvent, InitResult, InjectVideoResultData, InjectVideoType, MediaDevicesToggleStats, MediaType$1 as MediaType, MediaTypeNum, MonitorOperationEvent, NetworkQualityLevel, OutputClipperData, ProgressEventPayload, RotateInfo, RotateType, RotateTypeNum, RunInformationStats, SendUserErrorEvent, SocketCallbackPayload, StreamIndex, TouchInfo, TransparentMsgHandler, UserJoinedPayload, UserLeaveEvent, UserLeaveOrJoinPayload, UserLeaveReason, VideoErrorEvent };
|