larksr_websdk 3.2.343 → 3.2.401
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 +9 -6
- package/dist/types/appli_params.d.ts +4 -2
- package/dist/types/lark/application.d.ts +5 -0
- package/dist/types/lark/media_share_interface.d.ts +1 -0
- package/dist/types/lark/message.d.ts +2 -2
- package/dist/types/lark/peer_connection.d.ts +5 -0
- package/dist/types/lark/peer_connection_media_share.d.ts +62 -7
- package/dist/types/lark/sdp_util.d.ts +7 -4
- package/dist/types/larksr.d.ts +18 -0
- package/dist/types/protobuf/cloudlark.d.ts +359 -2
- package/dist/types/utils/log.d.ts +1 -1
- package/package.json +1 -1
- package/types/api.d.ts +9 -6
- package/types/appli_params.d.ts +4 -2
- package/types/lark/application.d.ts +5 -0
- package/types/lark/media_share_interface.d.ts +1 -0
- package/types/lark/message.d.ts +2 -2
- package/types/lark/peer_connection.d.ts +5 -0
- package/types/lark/peer_connection_media_share.d.ts +62 -7
- package/types/lark/sdp_util.d.ts +7 -4
- package/types/larksr.d.ts +18 -0
- package/types/protobuf/cloudlark.d.ts +359 -2
- package/types/utils/log.d.ts +1 -1
- package/dist/doc/config.md +0 -228
- package/dist/doc/event_codes.md +0 -286
- package/dist/doc/events.md +0 -229
- package/dist/doc/functions.md +0 -603
- package/dist/doc/index.md +0 -83
- package/dist/doc/member_variables.md +0 -407
- package/dist/doc/sdkid_encryption.md +0 -40
- package/dist/doc/update.md +0 -462
package/types/lark/sdp_util.d.ts
CHANGED
|
@@ -3,32 +3,35 @@ export default class SdpUtil {
|
|
|
3
3
|
private static vp9;
|
|
4
4
|
private static h264;
|
|
5
5
|
private static av1x;
|
|
6
|
+
private static av1;
|
|
6
7
|
private static h265;
|
|
7
8
|
private static hevc;
|
|
8
9
|
private static svac;
|
|
9
10
|
private static tail;
|
|
10
11
|
private static config;
|
|
11
12
|
static isLoopIpAddress(ip: string): boolean;
|
|
12
|
-
static getRtpmapRegByMode(mode: 'VP8' | 'VP9' | 'H264' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): RegExp;
|
|
13
|
+
static getRtpmapRegByMode(mode: 'VP8' | 'VP9' | 'H264' | 'AV1' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): RegExp;
|
|
13
14
|
static hasVp8(sdp: string): boolean;
|
|
14
15
|
static hasVp9(sdp: string): boolean;
|
|
15
16
|
static hasH264(sdp: string): boolean;
|
|
17
|
+
static hasAV1(sdp: string): boolean;
|
|
16
18
|
static hasAV1X(sdp: string): boolean;
|
|
17
19
|
static hasH265(sdp: string): boolean;
|
|
18
20
|
static hasHEVC(sdp: string): boolean;
|
|
19
21
|
static hasSVAC(sdp: string): boolean;
|
|
20
|
-
static hasMode(sdp: string, mode: 'VP8' | 'VP9' | 'H264' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): boolean;
|
|
22
|
+
static hasMode(sdp: string, mode: 'VP8' | 'VP9' | 'H264' | 'AV1' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): boolean;
|
|
21
23
|
static setAudioBitrate(sdp: string, bitrate: number): string;
|
|
22
24
|
static setBitRate(sdp: string, startBitrate: number, maxBitrate: number, minBitrate: number): string;
|
|
23
|
-
static setModeBitRate(sdp: string, startBitrate: number, maxBitrate: number, minBitrate: number, mode: 'VP8' | 'VP9' | 'H264' | 'AV1X'): string;
|
|
25
|
+
static setModeBitRate(sdp: string, startBitrate: number, maxBitrate: number, minBitrate: number, mode: 'VP8' | 'VP9' | 'H264' | 'AV1' | 'AV1X'): string;
|
|
24
26
|
static removeVp8(sdp: string): string;
|
|
25
27
|
static removeVp9(sdp: string): string;
|
|
26
28
|
static removeH264(sdp: string): string;
|
|
29
|
+
static removeAV1(sdp: string): string;
|
|
27
30
|
static removeAV1X(sdp: string): string;
|
|
28
31
|
static removeH265(sdp: string): string;
|
|
29
32
|
static removeHEVC(sdp: string): string;
|
|
30
33
|
static removeSVAC(sdp: string): string;
|
|
31
|
-
static sdpFilter(sdp: string, mode: 'VP8' | 'VP9' | 'H264' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): string;
|
|
34
|
+
static sdpFilter(sdp: string, mode: 'VP8' | 'VP9' | 'H264' | 'AV1' | 'AV1X' | 'H265' | 'HEVC' | 'SVAC'): string;
|
|
32
35
|
static sdpGooAttrLine(...attrs: string[]): string;
|
|
33
36
|
static sdpBlankAttrLine(...attrs: string[]): string;
|
|
34
37
|
static getBlankAttrs(sdpLine: string): string[];
|
package/types/larksr.d.ts
CHANGED
|
@@ -475,6 +475,11 @@ interface ILarkSRConfig {
|
|
|
475
475
|
* 是否启用 canvas 渲染. 默认关闭
|
|
476
476
|
*/
|
|
477
477
|
enableCanvasRender?: boolean;
|
|
478
|
+
/**
|
|
479
|
+
* 可选项
|
|
480
|
+
* loading页载入Logo版本
|
|
481
|
+
*/
|
|
482
|
+
loadingLogoVersion?: string;
|
|
478
483
|
}
|
|
479
484
|
declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
480
485
|
/**
|
|
@@ -651,10 +656,23 @@ declare class LarkSR extends EventBase<LarkSRClientEvent, LarkSREvent> {
|
|
|
651
656
|
* 视频通道是否暂停
|
|
652
657
|
*/
|
|
653
658
|
get videoPaused(): boolean | undefined;
|
|
659
|
+
/**
|
|
660
|
+
* 获取媒体通道,后续可以调用媒体通道的相关接口,如打开摄像头等
|
|
661
|
+
* 原有 larksr 对象中的媒体通道相当于序号 0
|
|
662
|
+
* @param index 媒体上传通道序号 0 - 5
|
|
663
|
+
* @returns
|
|
664
|
+
*/
|
|
665
|
+
getMediaSharePeerConnection(index: number): import("./lark/peer_connection_media_share").default;
|
|
654
666
|
/**
|
|
655
667
|
* 服务器支持的功能列表
|
|
656
668
|
*/
|
|
657
669
|
get serverFeatures(): CloudLark.INotifyFeatures | null | undefined;
|
|
670
|
+
get serverStatics(): CloudLark.IServerStatics | null | undefined;
|
|
671
|
+
/**
|
|
672
|
+
* 动态设置码率 单位 kbps
|
|
673
|
+
* @param bitrateKbps
|
|
674
|
+
*/
|
|
675
|
+
setVideoBitrateKbps(bitrateKbps: number): void;
|
|
658
676
|
/**
|
|
659
677
|
* LarkSR 客户端。所有操作和事件通过该类传递
|
|
660
678
|
* @param config 本地配置,优先级最高
|
|
@@ -1821,6 +1821,9 @@ export namespace CloudLark {
|
|
|
1821
1821
|
|
|
1822
1822
|
/** WebrtcOfferAnswer sdp */
|
|
1823
1823
|
sdp?: (string|null);
|
|
1824
|
+
|
|
1825
|
+
/** WebrtcOfferAnswer index */
|
|
1826
|
+
index?: (number|null);
|
|
1824
1827
|
}
|
|
1825
1828
|
|
|
1826
1829
|
/** Represents a WebrtcOfferAnswer. */
|
|
@@ -1838,6 +1841,9 @@ export namespace CloudLark {
|
|
|
1838
1841
|
/** WebrtcOfferAnswer sdp. */
|
|
1839
1842
|
public sdp: string;
|
|
1840
1843
|
|
|
1844
|
+
/** WebrtcOfferAnswer index. */
|
|
1845
|
+
public index: number;
|
|
1846
|
+
|
|
1841
1847
|
/**
|
|
1842
1848
|
* Creates a new WebrtcOfferAnswer instance using the specified properties.
|
|
1843
1849
|
* @param [properties] Properties to set
|
|
@@ -1923,6 +1929,9 @@ export namespace CloudLark {
|
|
|
1923
1929
|
|
|
1924
1930
|
/** WebrtcIceCandidate username */
|
|
1925
1931
|
username?: (string|null);
|
|
1932
|
+
|
|
1933
|
+
/** WebrtcIceCandidate index */
|
|
1934
|
+
index?: (number|null);
|
|
1926
1935
|
}
|
|
1927
1936
|
|
|
1928
1937
|
/** Represents a WebrtcIceCandidate. */
|
|
@@ -1946,6 +1955,9 @@ export namespace CloudLark {
|
|
|
1946
1955
|
/** WebrtcIceCandidate username. */
|
|
1947
1956
|
public username: string;
|
|
1948
1957
|
|
|
1958
|
+
/** WebrtcIceCandidate index. */
|
|
1959
|
+
public index: number;
|
|
1960
|
+
|
|
1949
1961
|
/**
|
|
1950
1962
|
* Creates a new WebrtcIceCandidate instance using the specified properties.
|
|
1951
1963
|
* @param [properties] Properties to set
|
|
@@ -7679,6 +7691,333 @@ export namespace CloudLark {
|
|
|
7679
7691
|
}
|
|
7680
7692
|
}
|
|
7681
7693
|
|
|
7694
|
+
/** Properties of a VideoReconfigure. */
|
|
7695
|
+
interface IVideoReconfigure {
|
|
7696
|
+
|
|
7697
|
+
/** VideoReconfigure bitrate */
|
|
7698
|
+
bitrate?: (number|null);
|
|
7699
|
+
}
|
|
7700
|
+
|
|
7701
|
+
/** Represents a VideoReconfigure. */
|
|
7702
|
+
class VideoReconfigure implements IVideoReconfigure {
|
|
7703
|
+
|
|
7704
|
+
/**
|
|
7705
|
+
* Constructs a new VideoReconfigure.
|
|
7706
|
+
* @param [properties] Properties to set
|
|
7707
|
+
*/
|
|
7708
|
+
constructor(properties?: CloudLark.IVideoReconfigure);
|
|
7709
|
+
|
|
7710
|
+
/** VideoReconfigure bitrate. */
|
|
7711
|
+
public bitrate?: (number|null);
|
|
7712
|
+
|
|
7713
|
+
/** VideoReconfigure video. */
|
|
7714
|
+
public video?: "bitrate";
|
|
7715
|
+
|
|
7716
|
+
/**
|
|
7717
|
+
* Creates a new VideoReconfigure instance using the specified properties.
|
|
7718
|
+
* @param [properties] Properties to set
|
|
7719
|
+
* @returns VideoReconfigure instance
|
|
7720
|
+
*/
|
|
7721
|
+
public static create(properties?: CloudLark.IVideoReconfigure): CloudLark.VideoReconfigure;
|
|
7722
|
+
|
|
7723
|
+
/**
|
|
7724
|
+
* Encodes the specified VideoReconfigure message. Does not implicitly {@link CloudLark.VideoReconfigure.verify|verify} messages.
|
|
7725
|
+
* @param message VideoReconfigure message or plain object to encode
|
|
7726
|
+
* @param [writer] Writer to encode to
|
|
7727
|
+
* @returns Writer
|
|
7728
|
+
*/
|
|
7729
|
+
public static encode(message: CloudLark.IVideoReconfigure, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7730
|
+
|
|
7731
|
+
/**
|
|
7732
|
+
* Encodes the specified VideoReconfigure message, length delimited. Does not implicitly {@link CloudLark.VideoReconfigure.verify|verify} messages.
|
|
7733
|
+
* @param message VideoReconfigure message or plain object to encode
|
|
7734
|
+
* @param [writer] Writer to encode to
|
|
7735
|
+
* @returns Writer
|
|
7736
|
+
*/
|
|
7737
|
+
public static encodeDelimited(message: CloudLark.IVideoReconfigure, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7738
|
+
|
|
7739
|
+
/**
|
|
7740
|
+
* Decodes a VideoReconfigure message from the specified reader or buffer.
|
|
7741
|
+
* @param reader Reader or buffer to decode from
|
|
7742
|
+
* @param [length] Message length if known beforehand
|
|
7743
|
+
* @returns VideoReconfigure
|
|
7744
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7745
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7746
|
+
*/
|
|
7747
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CloudLark.VideoReconfigure;
|
|
7748
|
+
|
|
7749
|
+
/**
|
|
7750
|
+
* Decodes a VideoReconfigure message from the specified reader or buffer, length delimited.
|
|
7751
|
+
* @param reader Reader or buffer to decode from
|
|
7752
|
+
* @returns VideoReconfigure
|
|
7753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7755
|
+
*/
|
|
7756
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CloudLark.VideoReconfigure;
|
|
7757
|
+
|
|
7758
|
+
/**
|
|
7759
|
+
* Verifies a VideoReconfigure message.
|
|
7760
|
+
* @param message Plain object to verify
|
|
7761
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7762
|
+
*/
|
|
7763
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7764
|
+
|
|
7765
|
+
/**
|
|
7766
|
+
* Creates a VideoReconfigure message from a plain object. Also converts values to their respective internal types.
|
|
7767
|
+
* @param object Plain object
|
|
7768
|
+
* @returns VideoReconfigure
|
|
7769
|
+
*/
|
|
7770
|
+
public static fromObject(object: { [k: string]: any }): CloudLark.VideoReconfigure;
|
|
7771
|
+
|
|
7772
|
+
/**
|
|
7773
|
+
* Creates a plain object from a VideoReconfigure message. Also converts values to other types if specified.
|
|
7774
|
+
* @param message VideoReconfigure
|
|
7775
|
+
* @param [options] Conversion options
|
|
7776
|
+
* @returns Plain object
|
|
7777
|
+
*/
|
|
7778
|
+
public static toObject(message: CloudLark.VideoReconfigure, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7779
|
+
|
|
7780
|
+
/**
|
|
7781
|
+
* Converts this VideoReconfigure to JSON.
|
|
7782
|
+
* @returns JSON object
|
|
7783
|
+
*/
|
|
7784
|
+
public toJSON(): { [k: string]: any };
|
|
7785
|
+
}
|
|
7786
|
+
|
|
7787
|
+
/** Properties of a ClientStatics. */
|
|
7788
|
+
interface IClientStatics {
|
|
7789
|
+
|
|
7790
|
+
/** ClientStatics bytesReceivedInSecond */
|
|
7791
|
+
bytesReceivedInSecond?: (number|null);
|
|
7792
|
+
|
|
7793
|
+
/** ClientStatics rtt */
|
|
7794
|
+
rtt?: (number|null);
|
|
7795
|
+
|
|
7796
|
+
/** ClientStatics packageLostInSecond */
|
|
7797
|
+
packageLostInSecond?: (number|null);
|
|
7798
|
+
|
|
7799
|
+
/** ClientStatics decodeDelay */
|
|
7800
|
+
decodeDelay?: (number|null);
|
|
7801
|
+
|
|
7802
|
+
/** ClientStatics totalProcessDelay */
|
|
7803
|
+
totalProcessDelay?: (number|null);
|
|
7804
|
+
}
|
|
7805
|
+
|
|
7806
|
+
/** Represents a ClientStatics. */
|
|
7807
|
+
class ClientStatics implements IClientStatics {
|
|
7808
|
+
|
|
7809
|
+
/**
|
|
7810
|
+
* Constructs a new ClientStatics.
|
|
7811
|
+
* @param [properties] Properties to set
|
|
7812
|
+
*/
|
|
7813
|
+
constructor(properties?: CloudLark.IClientStatics);
|
|
7814
|
+
|
|
7815
|
+
/** ClientStatics bytesReceivedInSecond. */
|
|
7816
|
+
public bytesReceivedInSecond: number;
|
|
7817
|
+
|
|
7818
|
+
/** ClientStatics rtt. */
|
|
7819
|
+
public rtt: number;
|
|
7820
|
+
|
|
7821
|
+
/** ClientStatics packageLostInSecond. */
|
|
7822
|
+
public packageLostInSecond: number;
|
|
7823
|
+
|
|
7824
|
+
/** ClientStatics decodeDelay. */
|
|
7825
|
+
public decodeDelay: number;
|
|
7826
|
+
|
|
7827
|
+
/** ClientStatics totalProcessDelay. */
|
|
7828
|
+
public totalProcessDelay: number;
|
|
7829
|
+
|
|
7830
|
+
/**
|
|
7831
|
+
* Creates a new ClientStatics instance using the specified properties.
|
|
7832
|
+
* @param [properties] Properties to set
|
|
7833
|
+
* @returns ClientStatics instance
|
|
7834
|
+
*/
|
|
7835
|
+
public static create(properties?: CloudLark.IClientStatics): CloudLark.ClientStatics;
|
|
7836
|
+
|
|
7837
|
+
/**
|
|
7838
|
+
* Encodes the specified ClientStatics message. Does not implicitly {@link CloudLark.ClientStatics.verify|verify} messages.
|
|
7839
|
+
* @param message ClientStatics message or plain object to encode
|
|
7840
|
+
* @param [writer] Writer to encode to
|
|
7841
|
+
* @returns Writer
|
|
7842
|
+
*/
|
|
7843
|
+
public static encode(message: CloudLark.IClientStatics, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7844
|
+
|
|
7845
|
+
/**
|
|
7846
|
+
* Encodes the specified ClientStatics message, length delimited. Does not implicitly {@link CloudLark.ClientStatics.verify|verify} messages.
|
|
7847
|
+
* @param message ClientStatics message or plain object to encode
|
|
7848
|
+
* @param [writer] Writer to encode to
|
|
7849
|
+
* @returns Writer
|
|
7850
|
+
*/
|
|
7851
|
+
public static encodeDelimited(message: CloudLark.IClientStatics, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7852
|
+
|
|
7853
|
+
/**
|
|
7854
|
+
* Decodes a ClientStatics message from the specified reader or buffer.
|
|
7855
|
+
* @param reader Reader or buffer to decode from
|
|
7856
|
+
* @param [length] Message length if known beforehand
|
|
7857
|
+
* @returns ClientStatics
|
|
7858
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7859
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7860
|
+
*/
|
|
7861
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CloudLark.ClientStatics;
|
|
7862
|
+
|
|
7863
|
+
/**
|
|
7864
|
+
* Decodes a ClientStatics message from the specified reader or buffer, length delimited.
|
|
7865
|
+
* @param reader Reader or buffer to decode from
|
|
7866
|
+
* @returns ClientStatics
|
|
7867
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7868
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7869
|
+
*/
|
|
7870
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CloudLark.ClientStatics;
|
|
7871
|
+
|
|
7872
|
+
/**
|
|
7873
|
+
* Verifies a ClientStatics message.
|
|
7874
|
+
* @param message Plain object to verify
|
|
7875
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7876
|
+
*/
|
|
7877
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7878
|
+
|
|
7879
|
+
/**
|
|
7880
|
+
* Creates a ClientStatics message from a plain object. Also converts values to their respective internal types.
|
|
7881
|
+
* @param object Plain object
|
|
7882
|
+
* @returns ClientStatics
|
|
7883
|
+
*/
|
|
7884
|
+
public static fromObject(object: { [k: string]: any }): CloudLark.ClientStatics;
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* Creates a plain object from a ClientStatics message. Also converts values to other types if specified.
|
|
7888
|
+
* @param message ClientStatics
|
|
7889
|
+
* @param [options] Conversion options
|
|
7890
|
+
* @returns Plain object
|
|
7891
|
+
*/
|
|
7892
|
+
public static toObject(message: CloudLark.ClientStatics, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7893
|
+
|
|
7894
|
+
/**
|
|
7895
|
+
* Converts this ClientStatics to JSON.
|
|
7896
|
+
* @returns JSON object
|
|
7897
|
+
*/
|
|
7898
|
+
public toJSON(): { [k: string]: any };
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7901
|
+
/** Properties of a ServerStatics. */
|
|
7902
|
+
interface IServerStatics {
|
|
7903
|
+
|
|
7904
|
+
/** ServerStatics captureDelay */
|
|
7905
|
+
captureDelay?: (number|null);
|
|
7906
|
+
|
|
7907
|
+
/** ServerStatics captureFramerate */
|
|
7908
|
+
captureFramerate?: (number|null);
|
|
7909
|
+
|
|
7910
|
+
/** ServerStatics renderDelay */
|
|
7911
|
+
renderDelay?: (number|null);
|
|
7912
|
+
|
|
7913
|
+
/** ServerStatics renderFramerate */
|
|
7914
|
+
renderFramerate?: (number|null);
|
|
7915
|
+
|
|
7916
|
+
/** ServerStatics encoderDelay */
|
|
7917
|
+
encoderDelay?: (number|null);
|
|
7918
|
+
|
|
7919
|
+
/** ServerStatics encoderFramerate */
|
|
7920
|
+
encoderFramerate?: (number|null);
|
|
7921
|
+
}
|
|
7922
|
+
|
|
7923
|
+
/** Represents a ServerStatics. */
|
|
7924
|
+
class ServerStatics implements IServerStatics {
|
|
7925
|
+
|
|
7926
|
+
/**
|
|
7927
|
+
* Constructs a new ServerStatics.
|
|
7928
|
+
* @param [properties] Properties to set
|
|
7929
|
+
*/
|
|
7930
|
+
constructor(properties?: CloudLark.IServerStatics);
|
|
7931
|
+
|
|
7932
|
+
/** ServerStatics captureDelay. */
|
|
7933
|
+
public captureDelay: number;
|
|
7934
|
+
|
|
7935
|
+
/** ServerStatics captureFramerate. */
|
|
7936
|
+
public captureFramerate: number;
|
|
7937
|
+
|
|
7938
|
+
/** ServerStatics renderDelay. */
|
|
7939
|
+
public renderDelay: number;
|
|
7940
|
+
|
|
7941
|
+
/** ServerStatics renderFramerate. */
|
|
7942
|
+
public renderFramerate: number;
|
|
7943
|
+
|
|
7944
|
+
/** ServerStatics encoderDelay. */
|
|
7945
|
+
public encoderDelay: number;
|
|
7946
|
+
|
|
7947
|
+
/** ServerStatics encoderFramerate. */
|
|
7948
|
+
public encoderFramerate: number;
|
|
7949
|
+
|
|
7950
|
+
/**
|
|
7951
|
+
* Creates a new ServerStatics instance using the specified properties.
|
|
7952
|
+
* @param [properties] Properties to set
|
|
7953
|
+
* @returns ServerStatics instance
|
|
7954
|
+
*/
|
|
7955
|
+
public static create(properties?: CloudLark.IServerStatics): CloudLark.ServerStatics;
|
|
7956
|
+
|
|
7957
|
+
/**
|
|
7958
|
+
* Encodes the specified ServerStatics message. Does not implicitly {@link CloudLark.ServerStatics.verify|verify} messages.
|
|
7959
|
+
* @param message ServerStatics message or plain object to encode
|
|
7960
|
+
* @param [writer] Writer to encode to
|
|
7961
|
+
* @returns Writer
|
|
7962
|
+
*/
|
|
7963
|
+
public static encode(message: CloudLark.IServerStatics, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7964
|
+
|
|
7965
|
+
/**
|
|
7966
|
+
* Encodes the specified ServerStatics message, length delimited. Does not implicitly {@link CloudLark.ServerStatics.verify|verify} messages.
|
|
7967
|
+
* @param message ServerStatics message or plain object to encode
|
|
7968
|
+
* @param [writer] Writer to encode to
|
|
7969
|
+
* @returns Writer
|
|
7970
|
+
*/
|
|
7971
|
+
public static encodeDelimited(message: CloudLark.IServerStatics, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7972
|
+
|
|
7973
|
+
/**
|
|
7974
|
+
* Decodes a ServerStatics message from the specified reader or buffer.
|
|
7975
|
+
* @param reader Reader or buffer to decode from
|
|
7976
|
+
* @param [length] Message length if known beforehand
|
|
7977
|
+
* @returns ServerStatics
|
|
7978
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7979
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7980
|
+
*/
|
|
7981
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): CloudLark.ServerStatics;
|
|
7982
|
+
|
|
7983
|
+
/**
|
|
7984
|
+
* Decodes a ServerStatics message from the specified reader or buffer, length delimited.
|
|
7985
|
+
* @param reader Reader or buffer to decode from
|
|
7986
|
+
* @returns ServerStatics
|
|
7987
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7988
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7989
|
+
*/
|
|
7990
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): CloudLark.ServerStatics;
|
|
7991
|
+
|
|
7992
|
+
/**
|
|
7993
|
+
* Verifies a ServerStatics message.
|
|
7994
|
+
* @param message Plain object to verify
|
|
7995
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7996
|
+
*/
|
|
7997
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7998
|
+
|
|
7999
|
+
/**
|
|
8000
|
+
* Creates a ServerStatics message from a plain object. Also converts values to their respective internal types.
|
|
8001
|
+
* @param object Plain object
|
|
8002
|
+
* @returns ServerStatics
|
|
8003
|
+
*/
|
|
8004
|
+
public static fromObject(object: { [k: string]: any }): CloudLark.ServerStatics;
|
|
8005
|
+
|
|
8006
|
+
/**
|
|
8007
|
+
* Creates a plain object from a ServerStatics message. Also converts values to other types if specified.
|
|
8008
|
+
* @param message ServerStatics
|
|
8009
|
+
* @param [options] Conversion options
|
|
8010
|
+
* @returns Plain object
|
|
8011
|
+
*/
|
|
8012
|
+
public static toObject(message: CloudLark.ServerStatics, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
8013
|
+
|
|
8014
|
+
/**
|
|
8015
|
+
* Converts this ServerStatics to JSON.
|
|
8016
|
+
* @returns JSON object
|
|
8017
|
+
*/
|
|
8018
|
+
public toJSON(): { [k: string]: any };
|
|
8019
|
+
}
|
|
8020
|
+
|
|
7682
8021
|
/** Properties of a ClientInput. */
|
|
7683
8022
|
interface IClientInput {
|
|
7684
8023
|
|
|
@@ -7759,6 +8098,12 @@ export namespace CloudLark {
|
|
|
7759
8098
|
|
|
7760
8099
|
/** ClientInput rtmpStop */
|
|
7761
8100
|
rtmpStop?: (CloudLark.IRtmp_Stop|null);
|
|
8101
|
+
|
|
8102
|
+
/** ClientInput videoConfigure */
|
|
8103
|
+
videoConfigure?: (CloudLark.IVideoReconfigure|null);
|
|
8104
|
+
|
|
8105
|
+
/** ClientInput clientStatics */
|
|
8106
|
+
clientStatics?: (CloudLark.IClientStatics|null);
|
|
7762
8107
|
}
|
|
7763
8108
|
|
|
7764
8109
|
/** Represents a ClientInput. */
|
|
@@ -7848,8 +8193,14 @@ export namespace CloudLark {
|
|
|
7848
8193
|
/** ClientInput rtmpStop. */
|
|
7849
8194
|
public rtmpStop?: (CloudLark.IRtmp_Stop|null);
|
|
7850
8195
|
|
|
8196
|
+
/** ClientInput videoConfigure. */
|
|
8197
|
+
public videoConfigure?: (CloudLark.IVideoReconfigure|null);
|
|
8198
|
+
|
|
8199
|
+
/** ClientInput clientStatics. */
|
|
8200
|
+
public clientStatics?: (CloudLark.IClientStatics|null);
|
|
8201
|
+
|
|
7851
8202
|
/** ClientInput input. */
|
|
7852
|
-
public input?: ("mouseMove"|"mouseDown"|"mouseUp"|"mouseWheel"|"keyDown"|"keyUp"|"clientEnter"|"clientLeave"|"dispatchController"|"requesController"|"textInput"|"gamepadInputJoystickStates"|"gamepadInputButtonDown"|"gamepadInputButtonUp"|"gamepadInputTriger"|"clientDcMsg"|"touchMove"|"touchDown"|"touchUp"|"aiVoicestreamStart"|"aiVoicestreamSlice"|"aiVoicestreamStop"|"aiVoicestreamReset"|"aiVoiceText"|"rtmpStart"|"rtmpStop");
|
|
8203
|
+
public input?: ("mouseMove"|"mouseDown"|"mouseUp"|"mouseWheel"|"keyDown"|"keyUp"|"clientEnter"|"clientLeave"|"dispatchController"|"requesController"|"textInput"|"gamepadInputJoystickStates"|"gamepadInputButtonDown"|"gamepadInputButtonUp"|"gamepadInputTriger"|"clientDcMsg"|"touchMove"|"touchDown"|"touchUp"|"aiVoicestreamStart"|"aiVoicestreamSlice"|"aiVoicestreamStop"|"aiVoicestreamReset"|"aiVoiceText"|"rtmpStart"|"rtmpStop"|"videoConfigure"|"clientStatics");
|
|
7853
8204
|
|
|
7854
8205
|
/**
|
|
7855
8206
|
* Creates a new ClientInput instance using the specified properties.
|
|
@@ -8089,6 +8440,9 @@ export namespace CloudLark {
|
|
|
8089
8440
|
|
|
8090
8441
|
/** AppNotification notifyFeatures */
|
|
8091
8442
|
notifyFeatures?: (CloudLark.INotifyFeatures|null);
|
|
8443
|
+
|
|
8444
|
+
/** AppNotification serverStatics */
|
|
8445
|
+
serverStatics?: (CloudLark.IServerStatics|null);
|
|
8092
8446
|
}
|
|
8093
8447
|
|
|
8094
8448
|
/** Represents an AppNotification. */
|
|
@@ -8145,8 +8499,11 @@ export namespace CloudLark {
|
|
|
8145
8499
|
/** AppNotification notifyFeatures. */
|
|
8146
8500
|
public notifyFeatures?: (CloudLark.INotifyFeatures|null);
|
|
8147
8501
|
|
|
8502
|
+
/** AppNotification serverStatics. */
|
|
8503
|
+
public serverStatics?: (CloudLark.IServerStatics|null);
|
|
8504
|
+
|
|
8148
8505
|
/** AppNotification notify. */
|
|
8149
|
-
public notify?: ("resize"|"mousemode"|"updatePlayers"|"requestInput"|"gamepadOutput"|"datachannelState"|"appDcMsg"|"cursorStyle"|"aiVoiceRealtimeParseresult"|"aiVoiceResult"|"aiVoiceServiceStatus"|"aiVoiceErr"|"rtmpState"|"rtmpError"|"notifyFeatures");
|
|
8506
|
+
public notify?: ("resize"|"mousemode"|"updatePlayers"|"requestInput"|"gamepadOutput"|"datachannelState"|"appDcMsg"|"cursorStyle"|"aiVoiceRealtimeParseresult"|"aiVoiceResult"|"aiVoiceServiceStatus"|"aiVoiceErr"|"rtmpState"|"rtmpError"|"notifyFeatures"|"serverStatics");
|
|
8150
8507
|
|
|
8151
8508
|
/**
|
|
8152
8509
|
* Creates a new AppNotification instance using the specified properties.
|
package/types/utils/log.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare class Level {
|
|
|
3
3
|
static WARN: string;
|
|
4
4
|
static ERR: string;
|
|
5
5
|
static TRACE: string;
|
|
6
|
-
static getLevelIndex(level: string): 0 |
|
|
6
|
+
static getLevelIndex(level: string): 0 | 1 | 2 | 3 | 4;
|
|
7
7
|
}
|
|
8
8
|
export interface LogObserver {
|
|
9
9
|
onLog(msg: string): void;
|