larksr_websdk 3.2.403 → 3.2.405
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 +1 -1
- package/dist/types/api.d.ts +3 -0
- package/dist/types/appli_params.d.ts +5 -3
- package/dist/types/lark/application.d.ts +1 -1
- package/dist/types/lark/peer_connection.d.ts +1 -1
- package/dist/types/larksr.d.ts +1 -1
- package/dist/types/screen_state.d.ts +6 -1
- package/dist/types/utils/scale_mode.d.ts +26 -1
- package/package.json +1 -1
- package/types/api.d.ts +3 -0
- package/types/appli_params.d.ts +5 -3
- package/types/lark/application.d.ts +1 -1
- package/types/lark/peer_connection.d.ts +1 -1
- package/types/larksr.d.ts +1 -1
- package/types/screen_state.d.ts +6 -1
- package/types/utils/scale_mode.d.ts +26 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -78,6 +78,9 @@ export interface StartAppInfo {
|
|
|
78
78
|
appKey?: string;
|
|
79
79
|
groupId?: string;
|
|
80
80
|
initResolutionType?: number;
|
|
81
|
+
useWebCodec?: number;
|
|
82
|
+
preferDecoder?: string;
|
|
83
|
+
mobileWebMenuType?: number;
|
|
81
84
|
}
|
|
82
85
|
declare type HostAppliGetUrlReturnParams = {
|
|
83
86
|
appliId: string;
|
|
@@ -205,7 +205,8 @@ export interface IAppliParams {
|
|
|
205
205
|
useSeparateMediaSharePeer: boolean;
|
|
206
206
|
mobileKeyboardType: number;
|
|
207
207
|
initResolutionType: number;
|
|
208
|
-
|
|
208
|
+
useWebCodec: boolean;
|
|
209
|
+
mobileWebMenuType: number;
|
|
209
210
|
}
|
|
210
211
|
export declare enum AppliType {
|
|
211
212
|
DESKTOP = 1,
|
|
@@ -276,7 +277,8 @@ export declare class AppliParams implements IAppliParams {
|
|
|
276
277
|
useSeparateMediaSharePeer: boolean;
|
|
277
278
|
mobileKeyboardType: number;
|
|
278
279
|
initResolutionType: number;
|
|
279
|
-
|
|
280
|
+
useWebCodec: boolean;
|
|
281
|
+
mobileWebMenuType: number;
|
|
280
282
|
static copyAndCreate(params?: IAppliParams): AppliParams;
|
|
281
283
|
static setUpWithSDKConfig(params: IAppliParams, config: ILarkSRConfig): AppliParams;
|
|
282
284
|
}
|
|
@@ -288,7 +290,7 @@ export declare class AppliParamsUtils {
|
|
|
288
290
|
static getBoolOption(option: string | null | undefined | boolean, emptyValue?: boolean): boolean;
|
|
289
291
|
static getNumberBoolOption(option: string | null | undefined | number, emptyValue?: boolean): boolean;
|
|
290
292
|
static getStringOption(option: string | null | undefined, emptyValue?: string): string;
|
|
291
|
-
static getIntOption(option: string | null | undefined, emptyValue?: number): number;
|
|
293
|
+
static getIntOption(option: string | number | null | undefined, emptyValue?: number): number;
|
|
292
294
|
static getBgColor(option: string | null | undefined): string;
|
|
293
295
|
}
|
|
294
296
|
/**
|
|
@@ -133,7 +133,7 @@ export default class Application extends EventBase<APP_EVENT_TYPE, AppEvent> {
|
|
|
133
133
|
rtcOffer(): Promise<void>;
|
|
134
134
|
setAnswer(sdp: string): void;
|
|
135
135
|
setIce(sdpMlineindex: number, sdpmid: string, candidate: string): void;
|
|
136
|
-
sendInput(input: Msg.CloudLark.ClientInput): void;
|
|
136
|
+
sendInput(input: Msg.CloudLark.ClientInput, needRemoteScreen?: boolean): void;
|
|
137
137
|
sendInputBuffer(buffer: ArrayBuffer): void;
|
|
138
138
|
private sendToWebsocektChannelBuffer;
|
|
139
139
|
private sendToWebsocektChannelMsg;
|
|
@@ -178,7 +178,7 @@ export default class PeerConnection extends EventBase<WEBRTC_EVENT_TYPE, WebRTCE
|
|
|
178
178
|
onReceiveCandidate(candateInit: RTCIceCandidateInit): void;
|
|
179
179
|
startNetTest(): void;
|
|
180
180
|
stopNetTest(): void;
|
|
181
|
-
sendInput(input: Input.CloudLark.ClientInput): void;
|
|
181
|
+
sendInput(input: Input.CloudLark.ClientInput, needRemoteScreen?: boolean): void;
|
|
182
182
|
sendBuffer(buffer: ArrayBuffer): void;
|
|
183
183
|
sendToAppTextMsg(msg: string): void;
|
|
184
184
|
sendToAppBinaryMsg(binary: Uint8Array): void;
|
package/dist/types/larksr.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ export declare const enum SCREEN_EVENT_TYPE {
|
|
|
45
45
|
ReSize = 0,
|
|
46
46
|
ContainerResize = 1
|
|
47
47
|
}
|
|
48
|
+
export interface ViewPortStyle extends ViewPort {
|
|
49
|
+
scrollX: boolean;
|
|
50
|
+
scrollY: boolean;
|
|
51
|
+
}
|
|
48
52
|
export interface ScreenEvent extends LocalEvent<SCREEN_EVENT_TYPE> {
|
|
49
53
|
container: ContainerSize;
|
|
50
54
|
viewPort: ViewPort;
|
|
@@ -56,7 +60,7 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
56
60
|
set originAppSize(viewport: ViewPort);
|
|
57
61
|
get originAppSize(): ViewPort;
|
|
58
62
|
private _originAppSize;
|
|
59
|
-
get viewPort():
|
|
63
|
+
get viewPort(): ViewPortStyle;
|
|
60
64
|
private _viewPort;
|
|
61
65
|
get viewPortStyle(): string;
|
|
62
66
|
get syncClientViewport(): {
|
|
@@ -125,4 +129,5 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
125
129
|
reset(params: IAppliParams): void;
|
|
126
130
|
setMobileForceLandScape(force: boolean): void;
|
|
127
131
|
resize(baseElementScale?: number, containerResize?: boolean): void;
|
|
132
|
+
scrollToCenter(): void;
|
|
128
133
|
}
|
|
@@ -27,17 +27,42 @@ export default class ScaleMode {
|
|
|
27
27
|
* 水平方向出现滚动条,垂直方向填充满
|
|
28
28
|
*/
|
|
29
29
|
static SCROLL_X_FILL_Y: string;
|
|
30
|
+
/**
|
|
31
|
+
* 水平方向出现滚动条,垂直方向填裁剪
|
|
32
|
+
*/
|
|
33
|
+
static SCROLL_X_CLIP_Y: string;
|
|
30
34
|
/**
|
|
31
35
|
* 水平方向出现滚动条,垂直方向不放大,不出现滚动条
|
|
32
36
|
*/
|
|
33
37
|
static SCROLL_X_CONTAIN_Y: string;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* 水平方向出现滚动条,垂直填满,如果超出出现滚动条
|
|
40
|
+
*/
|
|
41
|
+
static SCROLL_X_OVERFLOW_SCROLL_FILL_Y: string;
|
|
42
|
+
/**
|
|
43
|
+
* 水平方向出现滚动条,垂直填满,缩放水平方向保持宽高比
|
|
36
44
|
*/
|
|
45
|
+
static SCROLL_X_FILL_Y_ASPECT: string;
|
|
37
46
|
/**
|
|
38
47
|
* 水平方向填满,垂直方向出现滚动条
|
|
39
48
|
*/
|
|
40
49
|
static SCROLL_Y_FILL_X: string;
|
|
50
|
+
/**
|
|
51
|
+
* 水平方向填裁剪, 垂直方向出现滚动条
|
|
52
|
+
*/
|
|
53
|
+
static SCROLL_Y_CLIP_X: string;
|
|
54
|
+
/**
|
|
55
|
+
* 水平方向不放大,不出现滚动条,垂直方向出现滚动条
|
|
56
|
+
*/
|
|
57
|
+
static SCROLL_Y_CONTAIN_X: string;
|
|
58
|
+
/**
|
|
59
|
+
* 水平填满,如果超出出现滚动条,垂直方向出现滚动条
|
|
60
|
+
*/
|
|
61
|
+
static SCROLL_Y_OVERFLOW_SCROLL_FILL_X: string;
|
|
62
|
+
/**
|
|
63
|
+
* 水平方向填满(保持宽高比),垂直方向出现滚动条
|
|
64
|
+
*/
|
|
65
|
+
static SCROLL_Y_FILL_X_ASPECT: string;
|
|
41
66
|
/**
|
|
42
67
|
* offset 控制条的高度
|
|
43
68
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "larksr_websdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.405",
|
|
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
|
@@ -78,6 +78,9 @@ export interface StartAppInfo {
|
|
|
78
78
|
appKey?: string;
|
|
79
79
|
groupId?: string;
|
|
80
80
|
initResolutionType?: number;
|
|
81
|
+
useWebCodec?: number;
|
|
82
|
+
preferDecoder?: string;
|
|
83
|
+
mobileWebMenuType?: number;
|
|
81
84
|
}
|
|
82
85
|
declare type HostAppliGetUrlReturnParams = {
|
|
83
86
|
appliId: string;
|
package/types/appli_params.d.ts
CHANGED
|
@@ -205,7 +205,8 @@ export interface IAppliParams {
|
|
|
205
205
|
useSeparateMediaSharePeer: boolean;
|
|
206
206
|
mobileKeyboardType: number;
|
|
207
207
|
initResolutionType: number;
|
|
208
|
-
|
|
208
|
+
useWebCodec: boolean;
|
|
209
|
+
mobileWebMenuType: number;
|
|
209
210
|
}
|
|
210
211
|
export declare enum AppliType {
|
|
211
212
|
DESKTOP = 1,
|
|
@@ -276,7 +277,8 @@ export declare class AppliParams implements IAppliParams {
|
|
|
276
277
|
useSeparateMediaSharePeer: boolean;
|
|
277
278
|
mobileKeyboardType: number;
|
|
278
279
|
initResolutionType: number;
|
|
279
|
-
|
|
280
|
+
useWebCodec: boolean;
|
|
281
|
+
mobileWebMenuType: number;
|
|
280
282
|
static copyAndCreate(params?: IAppliParams): AppliParams;
|
|
281
283
|
static setUpWithSDKConfig(params: IAppliParams, config: ILarkSRConfig): AppliParams;
|
|
282
284
|
}
|
|
@@ -288,7 +290,7 @@ export declare class AppliParamsUtils {
|
|
|
288
290
|
static getBoolOption(option: string | null | undefined | boolean, emptyValue?: boolean): boolean;
|
|
289
291
|
static getNumberBoolOption(option: string | null | undefined | number, emptyValue?: boolean): boolean;
|
|
290
292
|
static getStringOption(option: string | null | undefined, emptyValue?: string): string;
|
|
291
|
-
static getIntOption(option: string | null | undefined, emptyValue?: number): number;
|
|
293
|
+
static getIntOption(option: string | number | null | undefined, emptyValue?: number): number;
|
|
292
294
|
static getBgColor(option: string | null | undefined): string;
|
|
293
295
|
}
|
|
294
296
|
/**
|
|
@@ -133,7 +133,7 @@ export default class Application extends EventBase<APP_EVENT_TYPE, AppEvent> {
|
|
|
133
133
|
rtcOffer(): Promise<void>;
|
|
134
134
|
setAnswer(sdp: string): void;
|
|
135
135
|
setIce(sdpMlineindex: number, sdpmid: string, candidate: string): void;
|
|
136
|
-
sendInput(input: Msg.CloudLark.ClientInput): void;
|
|
136
|
+
sendInput(input: Msg.CloudLark.ClientInput, needRemoteScreen?: boolean): void;
|
|
137
137
|
sendInputBuffer(buffer: ArrayBuffer): void;
|
|
138
138
|
private sendToWebsocektChannelBuffer;
|
|
139
139
|
private sendToWebsocektChannelMsg;
|
|
@@ -178,7 +178,7 @@ export default class PeerConnection extends EventBase<WEBRTC_EVENT_TYPE, WebRTCE
|
|
|
178
178
|
onReceiveCandidate(candateInit: RTCIceCandidateInit): void;
|
|
179
179
|
startNetTest(): void;
|
|
180
180
|
stopNetTest(): void;
|
|
181
|
-
sendInput(input: Input.CloudLark.ClientInput): void;
|
|
181
|
+
sendInput(input: Input.CloudLark.ClientInput, needRemoteScreen?: boolean): void;
|
|
182
182
|
sendBuffer(buffer: ArrayBuffer): void;
|
|
183
183
|
sendToAppTextMsg(msg: string): void;
|
|
184
184
|
sendToAppBinaryMsg(binary: Uint8Array): void;
|
package/types/larksr.d.ts
CHANGED
package/types/screen_state.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ export declare const enum SCREEN_EVENT_TYPE {
|
|
|
45
45
|
ReSize = 0,
|
|
46
46
|
ContainerResize = 1
|
|
47
47
|
}
|
|
48
|
+
export interface ViewPortStyle extends ViewPort {
|
|
49
|
+
scrollX: boolean;
|
|
50
|
+
scrollY: boolean;
|
|
51
|
+
}
|
|
48
52
|
export interface ScreenEvent extends LocalEvent<SCREEN_EVENT_TYPE> {
|
|
49
53
|
container: ContainerSize;
|
|
50
54
|
viewPort: ViewPort;
|
|
@@ -56,7 +60,7 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
56
60
|
set originAppSize(viewport: ViewPort);
|
|
57
61
|
get originAppSize(): ViewPort;
|
|
58
62
|
private _originAppSize;
|
|
59
|
-
get viewPort():
|
|
63
|
+
get viewPort(): ViewPortStyle;
|
|
60
64
|
private _viewPort;
|
|
61
65
|
get viewPortStyle(): string;
|
|
62
66
|
get syncClientViewport(): {
|
|
@@ -125,4 +129,5 @@ export default class ScreenState extends EventBase<SCREEN_EVENT_TYPE, ScreenEven
|
|
|
125
129
|
reset(params: IAppliParams): void;
|
|
126
130
|
setMobileForceLandScape(force: boolean): void;
|
|
127
131
|
resize(baseElementScale?: number, containerResize?: boolean): void;
|
|
132
|
+
scrollToCenter(): void;
|
|
128
133
|
}
|
|
@@ -27,17 +27,42 @@ export default class ScaleMode {
|
|
|
27
27
|
* 水平方向出现滚动条,垂直方向填充满
|
|
28
28
|
*/
|
|
29
29
|
static SCROLL_X_FILL_Y: string;
|
|
30
|
+
/**
|
|
31
|
+
* 水平方向出现滚动条,垂直方向填裁剪
|
|
32
|
+
*/
|
|
33
|
+
static SCROLL_X_CLIP_Y: string;
|
|
30
34
|
/**
|
|
31
35
|
* 水平方向出现滚动条,垂直方向不放大,不出现滚动条
|
|
32
36
|
*/
|
|
33
37
|
static SCROLL_X_CONTAIN_Y: string;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* 水平方向出现滚动条,垂直填满,如果超出出现滚动条
|
|
40
|
+
*/
|
|
41
|
+
static SCROLL_X_OVERFLOW_SCROLL_FILL_Y: string;
|
|
42
|
+
/**
|
|
43
|
+
* 水平方向出现滚动条,垂直填满,缩放水平方向保持宽高比
|
|
36
44
|
*/
|
|
45
|
+
static SCROLL_X_FILL_Y_ASPECT: string;
|
|
37
46
|
/**
|
|
38
47
|
* 水平方向填满,垂直方向出现滚动条
|
|
39
48
|
*/
|
|
40
49
|
static SCROLL_Y_FILL_X: string;
|
|
50
|
+
/**
|
|
51
|
+
* 水平方向填裁剪, 垂直方向出现滚动条
|
|
52
|
+
*/
|
|
53
|
+
static SCROLL_Y_CLIP_X: string;
|
|
54
|
+
/**
|
|
55
|
+
* 水平方向不放大,不出现滚动条,垂直方向出现滚动条
|
|
56
|
+
*/
|
|
57
|
+
static SCROLL_Y_CONTAIN_X: string;
|
|
58
|
+
/**
|
|
59
|
+
* 水平填满,如果超出出现滚动条,垂直方向出现滚动条
|
|
60
|
+
*/
|
|
61
|
+
static SCROLL_Y_OVERFLOW_SCROLL_FILL_X: string;
|
|
62
|
+
/**
|
|
63
|
+
* 水平方向填满(保持宽高比),垂直方向出现滚动条
|
|
64
|
+
*/
|
|
65
|
+
static SCROLL_Y_FILL_X_ASPECT: string;
|
|
41
66
|
/**
|
|
42
67
|
* offset 控制条的高度
|
|
43
68
|
*/
|