larksr_websdk 3.2.9 → 3.2.13
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/doc/config.md +13 -0
- package/dist/doc/functions.md +9 -0
- package/dist/doc/index.md +38 -9
- package/dist/doc/member_variables.md +14 -0
- package/dist/larksr-web-sdk.min.js +2 -2
- package/dist/types/api.d.ts +6 -0
- package/dist/types/appli_params.d.ts +4 -0
- package/dist/types/larksr.d.ts +56 -6
- package/dist/types/screen_state.d.ts +2 -3
- package/package.json +1 -1
- package/types/api.d.ts +6 -0
- package/types/appli_params.d.ts +4 -0
- package/types/lark/ice_candiadate_parser.d.ts +24 -0
- package/types/lark/lark_event_type.d.ts +1 -0
- package/types/lark/peer_connection.d.ts +1 -1
- package/types/larksr.d.ts +56 -6
- package/types/operation/operation.d.ts +1 -0
- package/types/screen_state.d.ts +2 -3
package/dist/types/api.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export interface StartAppInfo {
|
|
|
67
67
|
roomCode?: string;
|
|
68
68
|
nickName?: string;
|
|
69
69
|
nickname?: string;
|
|
70
|
+
appKey?: string;
|
|
71
|
+
groupId?: string;
|
|
70
72
|
}
|
|
71
73
|
export default class API {
|
|
72
74
|
static CheckUTLockInfoPath: string;
|
|
@@ -96,6 +98,10 @@ export default class API {
|
|
|
96
98
|
userType?: number;
|
|
97
99
|
roomCode?: string;
|
|
98
100
|
taskId?: string;
|
|
101
|
+
clientMac?: string;
|
|
102
|
+
groupId?: string;
|
|
103
|
+
regionId?: string;
|
|
104
|
+
targetServerIp?: string;
|
|
99
105
|
appKey?: string;
|
|
100
106
|
timestamp?: string;
|
|
101
107
|
signature?: string;
|
|
@@ -188,6 +188,8 @@ export interface IAppliParams {
|
|
|
188
188
|
enableRttIcon: boolean;
|
|
189
189
|
enableSoundRequire: boolean;
|
|
190
190
|
toastLevel: number;
|
|
191
|
+
appKey: string;
|
|
192
|
+
groupId: string;
|
|
191
193
|
}
|
|
192
194
|
export declare enum AppliType {
|
|
193
195
|
DESKTOP = 1,
|
|
@@ -245,6 +247,8 @@ export declare class AppliParams implements IAppliParams {
|
|
|
245
247
|
enableRttIcon: boolean;
|
|
246
248
|
enableSoundRequire: boolean;
|
|
247
249
|
toastLevel: number;
|
|
250
|
+
appKey: string;
|
|
251
|
+
groupId: string;
|
|
248
252
|
static copyAndCreate(params?: IAppliParams): AppliParams;
|
|
249
253
|
static setUpWithSDKConfig(params: IAppliParams, config: ILarkSRConfig): AppliParams;
|
|
250
254
|
}
|
package/dist/types/larksr.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import FullScreen from './utils/full_screen';
|
|
|
15
15
|
import LockPointer from './utils/lock_pointer';
|
|
16
16
|
import ScaleMode from './utils/scale_mode';
|
|
17
17
|
import Capabilities from './utils/capabilities';
|
|
18
|
-
declare
|
|
18
|
+
declare enum PlayerModeType {
|
|
19
19
|
/**
|
|
20
20
|
* 普通模式
|
|
21
21
|
*/
|
|
@@ -32,7 +32,7 @@ declare const enum PlayerModeType {
|
|
|
32
32
|
/**
|
|
33
33
|
* 当前用户的身份
|
|
34
34
|
*/
|
|
35
|
-
declare
|
|
35
|
+
declare enum UserType {
|
|
36
36
|
/**
|
|
37
37
|
* 观看者
|
|
38
38
|
*/
|
|
@@ -164,6 +164,9 @@ interface LarkSREvent extends LocalEvent<LarkSRClientEvent> {
|
|
|
164
164
|
code?: number;
|
|
165
165
|
larkevent?: LarkEventType;
|
|
166
166
|
}
|
|
167
|
+
declare type PublicPortMapping = {
|
|
168
|
+
[key: string]: string;
|
|
169
|
+
};
|
|
167
170
|
/**
|
|
168
171
|
* 构造 LarkSR 参数
|
|
169
172
|
*/
|
|
@@ -271,6 +274,19 @@ interface ILarkSRConfig {
|
|
|
271
274
|
* 初始化鼠标模式, true 锁定,false 非锁定
|
|
272
275
|
*/
|
|
273
276
|
initCursorMode?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* 渲染服务器外网端口映射
|
|
279
|
+
* 格式为 key=[渲染服务器IP:PORT] value=[外网IP:PORT]
|
|
280
|
+
* {
|
|
281
|
+
* "RENDER-A-IP:RENDER-A-PORT1": "PUBLIC-A-IP:PORT1",
|
|
282
|
+
* "RENDER-B-IP:RENDER-B-PORT1": "PUBLIC-A-IP:PORT2",
|
|
283
|
+
* "RENDER-C-IP:RENDER-C-PORT1": "PUBLIC-A-IP:PORT3",
|
|
284
|
+
* "RENDER-D-IP:RENDER-D-PORT1": "PUBLIC-B-IP:PORT1",
|
|
285
|
+
* "RENDER-E-IP:RENDER-E-PORT1": "PUBLIC-B-IP:PORT2",
|
|
286
|
+
* "RENDER-E-IP:RENDER-E-PORT2": "PUBLIC-C-IP:PORT1",
|
|
287
|
+
* }
|
|
288
|
+
*/
|
|
289
|
+
publicPortMapping?: PublicPortMapping;
|
|
274
290
|
}
|
|
275
291
|
/**
|
|
276
292
|
* 通过平行云托管平台创建客户端并启动应用
|
|
@@ -298,7 +314,13 @@ export declare function CreateLarkSRClientFromeAPI(config: ILarkSRConfig, params
|
|
|
298
314
|
userType?: number;
|
|
299
315
|
roomCode?: string;
|
|
300
316
|
taskId?: string;
|
|
301
|
-
|
|
317
|
+
clientMac?: string;
|
|
318
|
+
groupId?: string;
|
|
319
|
+
regionId?: string;
|
|
320
|
+
targetServerIp?: string;
|
|
321
|
+
appKey?: string;
|
|
322
|
+
timestamp?: string;
|
|
323
|
+
signature?: string;
|
|
302
324
|
}): Promise<LarkSR>;
|
|
303
325
|
/**
|
|
304
326
|
* 通过从url参数中获取云端应用相关参数
|
|
@@ -348,6 +370,10 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
348
370
|
*/
|
|
349
371
|
get screenState(): ScreenState;
|
|
350
372
|
private _screenState;
|
|
373
|
+
/**
|
|
374
|
+
* 动态设置scalemode
|
|
375
|
+
*/
|
|
376
|
+
set scaleMode(scaleMode: ScaleMode);
|
|
351
377
|
/**
|
|
352
378
|
* 当前的输入控制
|
|
353
379
|
* @see Operation
|
|
@@ -388,6 +414,14 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
388
414
|
*
|
|
389
415
|
*/
|
|
390
416
|
get viewportElement(): any;
|
|
417
|
+
/**
|
|
418
|
+
* 是否显示移动端触摸点
|
|
419
|
+
*/
|
|
420
|
+
set isEnableTouchPonit(enable: boolean);
|
|
421
|
+
/**
|
|
422
|
+
* 是否显示载入画面时底部文字
|
|
423
|
+
*/
|
|
424
|
+
set isEnableLoadingStateBar(enable: boolean);
|
|
391
425
|
get rootElement(): HTMLElement;
|
|
392
426
|
private _rootElement;
|
|
393
427
|
get serverAddress(): string;
|
|
@@ -406,10 +440,14 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
406
440
|
*/
|
|
407
441
|
isTaskOwner(): boolean;
|
|
408
442
|
_isTaskOwner: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* true:锁定模式 false:非锁定模式
|
|
445
|
+
*/
|
|
446
|
+
set initCursorMode(mode: boolean);
|
|
447
|
+
get initCursorMode(): boolean;
|
|
409
448
|
/**
|
|
410
449
|
* LarkSR 客户端。所有操作和事件通过该类传递
|
|
411
|
-
*
|
|
412
|
-
* @see CreateLarkSRClientFromeAPI, CreateLarkSRClientFromeUrl
|
|
450
|
+
* @see CreateLarkSRClientFromeAPI, @see CreateLarkSRClientFromeUrl @see CreateLarkSRClientFromePXYHost
|
|
413
451
|
* @param config 本地配置,如果有 IAppliParams 相同的配置项,优先级最高
|
|
414
452
|
* @param params [可选参数] 云端应用参数等,通过后台接口或者url参数获取。
|
|
415
453
|
*/
|
|
@@ -438,11 +476,18 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
438
476
|
userType?: number;
|
|
439
477
|
roomCode?: string;
|
|
440
478
|
taskId?: string;
|
|
441
|
-
|
|
479
|
+
clientMac?: string;
|
|
480
|
+
groupId?: string;
|
|
481
|
+
regionId?: string;
|
|
482
|
+
targetServerIp?: string;
|
|
442
483
|
appKey?: string;
|
|
443
484
|
timestamp?: string;
|
|
444
485
|
signature?: string;
|
|
445
486
|
}): Promise<void>;
|
|
487
|
+
/**
|
|
488
|
+
* 用户手动填昵称,需要在 start 或 connect 之前设置才能生效。
|
|
489
|
+
*/
|
|
490
|
+
setNickname(nickname: string): void;
|
|
446
491
|
/**
|
|
447
492
|
* 手动重设进入应用参数
|
|
448
493
|
* @param params
|
|
@@ -502,6 +547,11 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
502
547
|
* 可以不使用该方法退出页面
|
|
503
548
|
*/
|
|
504
549
|
quit(): void;
|
|
550
|
+
resetAppMouseLockState(): void;
|
|
551
|
+
/**
|
|
552
|
+
* 采集一帧图像
|
|
553
|
+
*/
|
|
554
|
+
captrueFrame(data: any): void;
|
|
505
555
|
/**
|
|
506
556
|
* 操作相关事件
|
|
507
557
|
* 所有事件坐标相对于云端应用,不相对于网页
|
|
@@ -78,11 +78,10 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
78
78
|
get screenOrientation(): ScreenOrientation;
|
|
79
79
|
private _screenOrientation;
|
|
80
80
|
get scaleMode(): ScaleMode;
|
|
81
|
+
set scaleMode(scaleMode: ScaleMode);
|
|
81
82
|
private _scaleMode;
|
|
82
83
|
get isFullScreen(): boolean;
|
|
83
84
|
private _isFullScreen;
|
|
84
|
-
get isLockMouse(): boolean;
|
|
85
|
-
private _isLockMouse;
|
|
86
85
|
get cursorStyle(): SyncCursorStyle;
|
|
87
86
|
set cursorStyle(style: SyncCursorStyle);
|
|
88
87
|
private _cursorStyle;
|
|
@@ -95,6 +94,7 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
95
94
|
scaleY: number;
|
|
96
95
|
};
|
|
97
96
|
get initCursorMode(): boolean;
|
|
97
|
+
set initCursorMode(mode: boolean);
|
|
98
98
|
private _initCursorMode;
|
|
99
99
|
get isMobile(): boolean;
|
|
100
100
|
private _isMobile;
|
|
@@ -102,7 +102,6 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
102
102
|
get isLockMosue(): boolean | null | undefined;
|
|
103
103
|
get rootElement(): HTMLElement;
|
|
104
104
|
private _rootElement;
|
|
105
|
-
private videoViewPort;
|
|
106
105
|
private mobileForceLandScape;
|
|
107
106
|
private bgColor;
|
|
108
107
|
private handelRootElementSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "larksr_websdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.13",
|
|
4
4
|
"description": "Larksr websdk. Easy to build a cloud render client for larksr system or ue4 pixelstreaming.docs: https://pingxingyun.github.io/webclient_sdk/",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pingxingyun",
|
package/types/api.d.ts
CHANGED
|
@@ -67,6 +67,8 @@ export interface StartAppInfo {
|
|
|
67
67
|
roomCode?: string;
|
|
68
68
|
nickName?: string;
|
|
69
69
|
nickname?: string;
|
|
70
|
+
appKey?: string;
|
|
71
|
+
groupId?: string;
|
|
70
72
|
}
|
|
71
73
|
export default class API {
|
|
72
74
|
static CheckUTLockInfoPath: string;
|
|
@@ -96,6 +98,10 @@ export default class API {
|
|
|
96
98
|
userType?: number;
|
|
97
99
|
roomCode?: string;
|
|
98
100
|
taskId?: string;
|
|
101
|
+
clientMac?: string;
|
|
102
|
+
groupId?: string;
|
|
103
|
+
regionId?: string;
|
|
104
|
+
targetServerIp?: string;
|
|
99
105
|
appKey?: string;
|
|
100
106
|
timestamp?: string;
|
|
101
107
|
signature?: string;
|
package/types/appli_params.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export interface IAppliParams {
|
|
|
188
188
|
enableRttIcon: boolean;
|
|
189
189
|
enableSoundRequire: boolean;
|
|
190
190
|
toastLevel: number;
|
|
191
|
+
appKey: string;
|
|
192
|
+
groupId: string;
|
|
191
193
|
}
|
|
192
194
|
export declare enum AppliType {
|
|
193
195
|
DESKTOP = 1,
|
|
@@ -245,6 +247,8 @@ export declare class AppliParams implements IAppliParams {
|
|
|
245
247
|
enableRttIcon: boolean;
|
|
246
248
|
enableSoundRequire: boolean;
|
|
247
249
|
toastLevel: number;
|
|
250
|
+
appKey: string;
|
|
251
|
+
groupId: string;
|
|
248
252
|
static copyAndCreate(params?: IAppliParams): AppliParams;
|
|
249
253
|
static setUpWithSDKConfig(params: IAppliParams, config: ILarkSRConfig): AppliParams;
|
|
250
254
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default class IceCandidateParser {
|
|
2
|
+
sdpMLineIndex: number | null;
|
|
3
|
+
sdpMid: string | null;
|
|
4
|
+
usernameFragment: string | null;
|
|
5
|
+
header: string;
|
|
6
|
+
private props;
|
|
7
|
+
constructor(ice: RTCIceCandidateInit);
|
|
8
|
+
get foundation(): string;
|
|
9
|
+
set foundation(f: string);
|
|
10
|
+
get component(): string;
|
|
11
|
+
set component(f: string);
|
|
12
|
+
get protocol(): string;
|
|
13
|
+
set protocol(p: string);
|
|
14
|
+
get priority(): string;
|
|
15
|
+
set priority(p: string);
|
|
16
|
+
get ip(): string;
|
|
17
|
+
set ip(ip: string);
|
|
18
|
+
get port(): string;
|
|
19
|
+
set port(port: string);
|
|
20
|
+
get type(): string;
|
|
21
|
+
get candidate(): string;
|
|
22
|
+
genNewIceCandidateInit(): RTCIceCandidateInit;
|
|
23
|
+
genNewIceCandidate(): RTCIceCandidate;
|
|
24
|
+
}
|
|
@@ -27,6 +27,7 @@ export declare enum LarkEventType {
|
|
|
27
27
|
LK_RTC_EVENT_PEERCONNECTION_CONNECTED = 600,
|
|
28
28
|
LK_RTC_EVENT_PEERCONNECTION_CLOSED = 601,
|
|
29
29
|
LK_RTC_EVENT_PEERCONNECTION_ERROR = 602,
|
|
30
|
+
LK_RTC_EVENT_PEERCONNECTION_CREATE_FAILED = 603,
|
|
30
31
|
LK_RTC_EVENT_PEERCONNECTION_STATE = 610,
|
|
31
32
|
LK_RTC_EVENT_PEERCONNECTION_RETRY = 611,
|
|
32
33
|
LK_VIDEO_LOADED = 700,
|
|
@@ -92,7 +92,7 @@ export default class PeerConnection extends EventBase<WEBRTC_EVENT_TYPE, WebRTCE
|
|
|
92
92
|
createOffer(): void;
|
|
93
93
|
close(): void;
|
|
94
94
|
onRemoteDescription(des: RTCSessionDescriptionInit): void;
|
|
95
|
-
onReceiveCandidate(candateInit: RTCIceCandidateInit
|
|
95
|
+
onReceiveCandidate(candateInit: RTCIceCandidateInit): void;
|
|
96
96
|
startNetTest(): void;
|
|
97
97
|
stopNetTest(): void;
|
|
98
98
|
sendInput(input: Input.CloudLark.ClientInput): void;
|
package/types/larksr.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import FullScreen from './utils/full_screen';
|
|
|
15
15
|
import LockPointer from './utils/lock_pointer';
|
|
16
16
|
import ScaleMode from './utils/scale_mode';
|
|
17
17
|
import Capabilities from './utils/capabilities';
|
|
18
|
-
declare
|
|
18
|
+
declare enum PlayerModeType {
|
|
19
19
|
/**
|
|
20
20
|
* 普通模式
|
|
21
21
|
*/
|
|
@@ -32,7 +32,7 @@ declare const enum PlayerModeType {
|
|
|
32
32
|
/**
|
|
33
33
|
* 当前用户的身份
|
|
34
34
|
*/
|
|
35
|
-
declare
|
|
35
|
+
declare enum UserType {
|
|
36
36
|
/**
|
|
37
37
|
* 观看者
|
|
38
38
|
*/
|
|
@@ -164,6 +164,9 @@ interface LarkSREvent extends LocalEvent<LarkSRClientEvent> {
|
|
|
164
164
|
code?: number;
|
|
165
165
|
larkevent?: LarkEventType;
|
|
166
166
|
}
|
|
167
|
+
declare type PublicPortMapping = {
|
|
168
|
+
[key: string]: string;
|
|
169
|
+
};
|
|
167
170
|
/**
|
|
168
171
|
* 构造 LarkSR 参数
|
|
169
172
|
*/
|
|
@@ -271,6 +274,19 @@ interface ILarkSRConfig {
|
|
|
271
274
|
* 初始化鼠标模式, true 锁定,false 非锁定
|
|
272
275
|
*/
|
|
273
276
|
initCursorMode?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* 渲染服务器外网端口映射
|
|
279
|
+
* 格式为 key=[渲染服务器IP:PORT] value=[外网IP:PORT]
|
|
280
|
+
* {
|
|
281
|
+
* "RENDER-A-IP:RENDER-A-PORT1": "PUBLIC-A-IP:PORT1",
|
|
282
|
+
* "RENDER-B-IP:RENDER-B-PORT1": "PUBLIC-A-IP:PORT2",
|
|
283
|
+
* "RENDER-C-IP:RENDER-C-PORT1": "PUBLIC-A-IP:PORT3",
|
|
284
|
+
* "RENDER-D-IP:RENDER-D-PORT1": "PUBLIC-B-IP:PORT1",
|
|
285
|
+
* "RENDER-E-IP:RENDER-E-PORT1": "PUBLIC-B-IP:PORT2",
|
|
286
|
+
* "RENDER-E-IP:RENDER-E-PORT2": "PUBLIC-C-IP:PORT1",
|
|
287
|
+
* }
|
|
288
|
+
*/
|
|
289
|
+
publicPortMapping?: PublicPortMapping;
|
|
274
290
|
}
|
|
275
291
|
/**
|
|
276
292
|
* 通过平行云托管平台创建客户端并启动应用
|
|
@@ -298,7 +314,13 @@ export declare function CreateLarkSRClientFromeAPI(config: ILarkSRConfig, params
|
|
|
298
314
|
userType?: number;
|
|
299
315
|
roomCode?: string;
|
|
300
316
|
taskId?: string;
|
|
301
|
-
|
|
317
|
+
clientMac?: string;
|
|
318
|
+
groupId?: string;
|
|
319
|
+
regionId?: string;
|
|
320
|
+
targetServerIp?: string;
|
|
321
|
+
appKey?: string;
|
|
322
|
+
timestamp?: string;
|
|
323
|
+
signature?: string;
|
|
302
324
|
}): Promise<LarkSR>;
|
|
303
325
|
/**
|
|
304
326
|
* 通过从url参数中获取云端应用相关参数
|
|
@@ -348,6 +370,10 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
348
370
|
*/
|
|
349
371
|
get screenState(): ScreenState;
|
|
350
372
|
private _screenState;
|
|
373
|
+
/**
|
|
374
|
+
* 动态设置scalemode
|
|
375
|
+
*/
|
|
376
|
+
set scaleMode(scaleMode: ScaleMode);
|
|
351
377
|
/**
|
|
352
378
|
* 当前的输入控制
|
|
353
379
|
* @see Operation
|
|
@@ -388,6 +414,14 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
388
414
|
*
|
|
389
415
|
*/
|
|
390
416
|
get viewportElement(): any;
|
|
417
|
+
/**
|
|
418
|
+
* 是否显示移动端触摸点
|
|
419
|
+
*/
|
|
420
|
+
set isEnableTouchPonit(enable: boolean);
|
|
421
|
+
/**
|
|
422
|
+
* 是否显示载入画面时底部文字
|
|
423
|
+
*/
|
|
424
|
+
set isEnableLoadingStateBar(enable: boolean);
|
|
391
425
|
get rootElement(): HTMLElement;
|
|
392
426
|
private _rootElement;
|
|
393
427
|
get serverAddress(): string;
|
|
@@ -406,10 +440,14 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
406
440
|
*/
|
|
407
441
|
isTaskOwner(): boolean;
|
|
408
442
|
_isTaskOwner: boolean;
|
|
443
|
+
/**
|
|
444
|
+
* true:锁定模式 false:非锁定模式
|
|
445
|
+
*/
|
|
446
|
+
set initCursorMode(mode: boolean);
|
|
447
|
+
get initCursorMode(): boolean;
|
|
409
448
|
/**
|
|
410
449
|
* LarkSR 客户端。所有操作和事件通过该类传递
|
|
411
|
-
*
|
|
412
|
-
* @see CreateLarkSRClientFromeAPI, CreateLarkSRClientFromeUrl
|
|
450
|
+
* @see CreateLarkSRClientFromeAPI, @see CreateLarkSRClientFromeUrl @see CreateLarkSRClientFromePXYHost
|
|
413
451
|
* @param config 本地配置,如果有 IAppliParams 相同的配置项,优先级最高
|
|
414
452
|
* @param params [可选参数] 云端应用参数等,通过后台接口或者url参数获取。
|
|
415
453
|
*/
|
|
@@ -438,11 +476,18 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
438
476
|
userType?: number;
|
|
439
477
|
roomCode?: string;
|
|
440
478
|
taskId?: string;
|
|
441
|
-
|
|
479
|
+
clientMac?: string;
|
|
480
|
+
groupId?: string;
|
|
481
|
+
regionId?: string;
|
|
482
|
+
targetServerIp?: string;
|
|
442
483
|
appKey?: string;
|
|
443
484
|
timestamp?: string;
|
|
444
485
|
signature?: string;
|
|
445
486
|
}): Promise<void>;
|
|
487
|
+
/**
|
|
488
|
+
* 用户手动填昵称,需要在 start 或 connect 之前设置才能生效。
|
|
489
|
+
*/
|
|
490
|
+
setNickname(nickname: string): void;
|
|
446
491
|
/**
|
|
447
492
|
* 手动重设进入应用参数
|
|
448
493
|
* @param params
|
|
@@ -502,6 +547,11 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
502
547
|
* 可以不使用该方法退出页面
|
|
503
548
|
*/
|
|
504
549
|
quit(): void;
|
|
550
|
+
resetAppMouseLockState(): void;
|
|
551
|
+
/**
|
|
552
|
+
* 采集一帧图像
|
|
553
|
+
*/
|
|
554
|
+
captrueFrame(data: any): void;
|
|
505
555
|
/**
|
|
506
556
|
* 操作相关事件
|
|
507
557
|
* 所有事件坐标相对于云端应用,不相对于网页
|
|
@@ -42,6 +42,7 @@ export default class Operation extends EventBase<OPREATION_EVENT_TYPE, Operation
|
|
|
42
42
|
setTouchEnable(enable: boolean): void;
|
|
43
43
|
resetLocalRendreMousePosition(): void;
|
|
44
44
|
setAppMouseMode(mode: CloudLark.IAppMouseMode): void;
|
|
45
|
+
resetAppMouseLockState(): void;
|
|
45
46
|
startListening(): void;
|
|
46
47
|
stopListenling(): void;
|
|
47
48
|
private startOperationCheck;
|
package/types/screen_state.d.ts
CHANGED
|
@@ -78,11 +78,10 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
78
78
|
get screenOrientation(): ScreenOrientation;
|
|
79
79
|
private _screenOrientation;
|
|
80
80
|
get scaleMode(): ScaleMode;
|
|
81
|
+
set scaleMode(scaleMode: ScaleMode);
|
|
81
82
|
private _scaleMode;
|
|
82
83
|
get isFullScreen(): boolean;
|
|
83
84
|
private _isFullScreen;
|
|
84
|
-
get isLockMouse(): boolean;
|
|
85
|
-
private _isLockMouse;
|
|
86
85
|
get cursorStyle(): SyncCursorStyle;
|
|
87
86
|
set cursorStyle(style: SyncCursorStyle);
|
|
88
87
|
private _cursorStyle;
|
|
@@ -95,6 +94,7 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
95
94
|
scaleY: number;
|
|
96
95
|
};
|
|
97
96
|
get initCursorMode(): boolean;
|
|
97
|
+
set initCursorMode(mode: boolean);
|
|
98
98
|
private _initCursorMode;
|
|
99
99
|
get isMobile(): boolean;
|
|
100
100
|
private _isMobile;
|
|
@@ -102,7 +102,6 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
102
102
|
get isLockMosue(): boolean | null | undefined;
|
|
103
103
|
get rootElement(): HTMLElement;
|
|
104
104
|
private _rootElement;
|
|
105
|
-
private videoViewPort;
|
|
106
105
|
private mobileForceLandScape;
|
|
107
106
|
private bgColor;
|
|
108
107
|
private handelRootElementSize;
|