@xylink/xy-rtc-sdk 2.1.3-beta.0 → 2.1.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/lib/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/lib/src/enum/index.d.ts +5 -1
- package/lib/src/main/client.d.ts +16 -1
- package/lib/src/tools/config.d.ts +1 -1
- package/lib/src/tools/utils.d.ts +7 -0
- package/lib/src/type/client.d.ts +9 -0
- package/package.json +1 -1
package/lib/src/enum/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-30 14:12:52
|
|
6
6
|
*/
|
|
7
|
-
import { IDefault, IMUTE_MAP, ITemplateMode, IContentTemplateMode, IRoster } from '../type';
|
|
7
|
+
import { IDefault, IMUTE_MAP, ITemplateMode, IContentTemplateMode, IRoster, IFeatureConfig } from '../type';
|
|
8
8
|
export * from './contraints';
|
|
9
9
|
export declare const LOG_CACHE_COUNT = 10;
|
|
10
10
|
export declare const DB_TABLE_COUNT = 10;
|
|
@@ -133,3 +133,7 @@ export declare const SupportLocalLanguages: readonly ["Chinese", "English"];
|
|
|
133
133
|
* 日志中需要隐藏的关键词
|
|
134
134
|
*/
|
|
135
135
|
export declare const HIDE_KEY_INFOS: string[];
|
|
136
|
+
/**
|
|
137
|
+
* SDK功能控制开关
|
|
138
|
+
*/
|
|
139
|
+
export declare const DEFAULT_FEATURE_CONFIG: IFeatureConfig;
|
package/lib/src/main/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-23 12:04:44
|
|
6
6
|
*/
|
|
7
|
-
import { IClientConfig, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, ICustomMessageConfig } from '../type';
|
|
7
|
+
import { IClientConfig, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, IServers, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, ICustomMessageConfig, IFeatureConfig } from '../type';
|
|
8
8
|
import Emmitter from '../tools/emmitter';
|
|
9
9
|
import Socket from '../tools/socket';
|
|
10
10
|
import Stream from './stream';
|
|
@@ -73,6 +73,7 @@ export default class Client extends Emmitter {
|
|
|
73
73
|
private qualityManager;
|
|
74
74
|
private isShareContent;
|
|
75
75
|
private isSubscribeTranslation;
|
|
76
|
+
private featureConfig;
|
|
76
77
|
private onDocumentChange;
|
|
77
78
|
constructor(config: IClientConfig, servers: IServers, logger: Logger);
|
|
78
79
|
static instance: Client;
|
|
@@ -83,6 +84,7 @@ export default class Client extends Emmitter {
|
|
|
83
84
|
quality: number;
|
|
84
85
|
mediagroupid: number;
|
|
85
86
|
};
|
|
87
|
+
getFeatureConfig(): IFeatureConfig;
|
|
86
88
|
getClientConfig(): IClientConfig;
|
|
87
89
|
getVideoManagers(): import("../type").IVideoRenders | undefined;
|
|
88
90
|
getPreviewStreams(): import("../type").IGetMediaStreams | {
|
|
@@ -140,6 +142,19 @@ export default class Client extends Emmitter {
|
|
|
140
142
|
*/
|
|
141
143
|
resetInitParameter(): void;
|
|
142
144
|
setContentMode(mode: IContentMode): void;
|
|
145
|
+
/**
|
|
146
|
+
* SDK功能控制开关
|
|
147
|
+
*
|
|
148
|
+
* @public
|
|
149
|
+
* @param { IFeatureConfig } config 功能配置项
|
|
150
|
+
* @property { boolean } config.enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false;
|
|
151
|
+
* @returns { IResult }
|
|
152
|
+
*/
|
|
153
|
+
setFeatureConfig(config: IFeatureConfig): {
|
|
154
|
+
code: string;
|
|
155
|
+
msg: string;
|
|
156
|
+
detail: any;
|
|
157
|
+
} | undefined;
|
|
143
158
|
/**
|
|
144
159
|
* 切换显示/隐藏 Local 画面
|
|
145
160
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-24 14:06:05
|
|
6
6
|
*/
|
|
7
|
-
export declare const version = "2.1.3-beta.
|
|
7
|
+
export declare const version = "2.1.3-beta.1 - build on 2022-12-09 17:27";
|
|
8
8
|
export declare const proxy: {
|
|
9
9
|
wssHost: string;
|
|
10
10
|
restHost: string;
|
package/lib/src/tools/utils.d.ts
CHANGED
|
@@ -65,3 +65,10 @@ export declare const getMeetingStatus: (success: boolean, code?: string, msg?: s
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
export declare const hideKeyInfo: (data: any, key: string | string[]) => any;
|
|
68
|
+
export declare const TYPEOF: {
|
|
69
|
+
isNumber(num: any): boolean;
|
|
70
|
+
isObject(obj: any): boolean;
|
|
71
|
+
isArray(arr: any): boolean;
|
|
72
|
+
isString(str: any): boolean;
|
|
73
|
+
isBoolean(str: any): boolean;
|
|
74
|
+
};
|
package/lib/src/type/client.d.ts
CHANGED
|
@@ -1127,4 +1127,13 @@ export interface IReceiveCustomMessage {
|
|
|
1127
1127
|
toPid: number;
|
|
1128
1128
|
data: string;
|
|
1129
1129
|
}
|
|
1130
|
+
/**
|
|
1131
|
+
* SDK功能控制开关,用于内部是否启用某些功能的运行
|
|
1132
|
+
* 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
|
|
1133
|
+
*
|
|
1134
|
+
* @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false;
|
|
1135
|
+
*/
|
|
1136
|
+
export interface IFeatureConfig {
|
|
1137
|
+
enableMobileNotAuth?: boolean;
|
|
1138
|
+
}
|
|
1130
1139
|
export {};
|