larksr_websdk 3.2.9 → 3.2.10
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/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 +18 -4
- package/package.json +1 -1
- package/types/api.d.ts +6 -0
- package/types/appli_params.d.ts +4 -0
- package/types/larksr.d.ts +18 -4
- package/types/operation/operation.d.ts +1 -0
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
|
*/
|
|
@@ -298,7 +298,13 @@ export declare function CreateLarkSRClientFromeAPI(config: ILarkSRConfig, params
|
|
|
298
298
|
userType?: number;
|
|
299
299
|
roomCode?: string;
|
|
300
300
|
taskId?: string;
|
|
301
|
-
|
|
301
|
+
clientMac?: string;
|
|
302
|
+
groupId?: string;
|
|
303
|
+
regionId?: string;
|
|
304
|
+
targetServerIp?: string;
|
|
305
|
+
appKey?: string;
|
|
306
|
+
timestamp?: string;
|
|
307
|
+
signature?: string;
|
|
302
308
|
}): Promise<LarkSR>;
|
|
303
309
|
/**
|
|
304
310
|
* 通过从url参数中获取云端应用相关参数
|
|
@@ -438,11 +444,18 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
438
444
|
userType?: number;
|
|
439
445
|
roomCode?: string;
|
|
440
446
|
taskId?: string;
|
|
441
|
-
|
|
447
|
+
clientMac?: string;
|
|
448
|
+
groupId?: string;
|
|
449
|
+
regionId?: string;
|
|
450
|
+
targetServerIp?: string;
|
|
442
451
|
appKey?: string;
|
|
443
452
|
timestamp?: string;
|
|
444
453
|
signature?: string;
|
|
445
454
|
}): Promise<void>;
|
|
455
|
+
/**
|
|
456
|
+
* 用户手动填昵称,需要在 start 或 connect 设置才能生效。
|
|
457
|
+
*/
|
|
458
|
+
setNickname(nickname: string): void;
|
|
446
459
|
/**
|
|
447
460
|
* 手动重设进入应用参数
|
|
448
461
|
* @param params
|
|
@@ -502,6 +515,7 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
502
515
|
* 可以不使用该方法退出页面
|
|
503
516
|
*/
|
|
504
517
|
quit(): void;
|
|
518
|
+
resetAppMouseLockState(): void;
|
|
505
519
|
/**
|
|
506
520
|
* 操作相关事件
|
|
507
521
|
* 所有事件坐标相对于云端应用,不相对于网页
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "larksr_websdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.10",
|
|
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
|
}
|
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
|
*/
|
|
@@ -298,7 +298,13 @@ export declare function CreateLarkSRClientFromeAPI(config: ILarkSRConfig, params
|
|
|
298
298
|
userType?: number;
|
|
299
299
|
roomCode?: string;
|
|
300
300
|
taskId?: string;
|
|
301
|
-
|
|
301
|
+
clientMac?: string;
|
|
302
|
+
groupId?: string;
|
|
303
|
+
regionId?: string;
|
|
304
|
+
targetServerIp?: string;
|
|
305
|
+
appKey?: string;
|
|
306
|
+
timestamp?: string;
|
|
307
|
+
signature?: string;
|
|
302
308
|
}): Promise<LarkSR>;
|
|
303
309
|
/**
|
|
304
310
|
* 通过从url参数中获取云端应用相关参数
|
|
@@ -438,11 +444,18 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
438
444
|
userType?: number;
|
|
439
445
|
roomCode?: string;
|
|
440
446
|
taskId?: string;
|
|
441
|
-
|
|
447
|
+
clientMac?: string;
|
|
448
|
+
groupId?: string;
|
|
449
|
+
regionId?: string;
|
|
450
|
+
targetServerIp?: string;
|
|
442
451
|
appKey?: string;
|
|
443
452
|
timestamp?: string;
|
|
444
453
|
signature?: string;
|
|
445
454
|
}): Promise<void>;
|
|
455
|
+
/**
|
|
456
|
+
* 用户手动填昵称,需要在 start 或 connect 设置才能生效。
|
|
457
|
+
*/
|
|
458
|
+
setNickname(nickname: string): void;
|
|
446
459
|
/**
|
|
447
460
|
* 手动重设进入应用参数
|
|
448
461
|
* @param params
|
|
@@ -502,6 +515,7 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
502
515
|
* 可以不使用该方法退出页面
|
|
503
516
|
*/
|
|
504
517
|
quit(): void;
|
|
518
|
+
resetAppMouseLockState(): void;
|
|
505
519
|
/**
|
|
506
520
|
* 操作相关事件
|
|
507
521
|
* 所有事件坐标相对于云端应用,不相对于网页
|
|
@@ -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;
|