@xylink/xy-rtc-sdk 3.9.6 → 3.9.7
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/enum/contraints.d.ts +6 -6
- package/lib/main/client.d.ts +0 -5
- package/lib/main/peer.d.ts +16 -0
- package/lib/main/stream.d.ts +4 -0
- package/lib/tools/utils.d.ts +0 -7
- package/lib/type/client.d.ts +0 -11
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +1 -1
package/lib/enum/contraints.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { I_CONTENT_CONSTRAINTS, I_PEOPLE_CONSTRAINTS, IConstraintsConfigMap, IStreamConfig } from '../type';
|
|
2
|
-
/**
|
|
3
|
-
* people基础约束配置
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare const BASE_PEOPLE_CONSTRAINTS: I_PEOPLE_CONSTRAINTS;
|
|
8
2
|
/**
|
|
9
3
|
* people特殊约束配置
|
|
10
4
|
*
|
|
@@ -13,6 +7,12 @@ export declare const BASE_PEOPLE_CONSTRAINTS: I_PEOPLE_CONSTRAINTS;
|
|
|
13
7
|
* @returns
|
|
14
8
|
*/
|
|
15
9
|
export declare const SPECIAL_PEOPLE_CONSTRAINTS: (streamConfig: IStreamConfig) => I_PEOPLE_CONSTRAINTS;
|
|
10
|
+
/**
|
|
11
|
+
* people基础约束配置
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
export declare const BASE_PEOPLE_CONSTRAINTS: I_PEOPLE_CONSTRAINTS;
|
|
16
16
|
/**
|
|
17
17
|
* content采集基础约束配置
|
|
18
18
|
*/
|
package/lib/main/client.d.ts
CHANGED
|
@@ -79,7 +79,6 @@ export default class Client extends Emitter {
|
|
|
79
79
|
private operateQueue;
|
|
80
80
|
private facingMode;
|
|
81
81
|
private wsReConnectCount;
|
|
82
|
-
private recordStatusNotification;
|
|
83
82
|
private localSpeakerTimer;
|
|
84
83
|
private onDocumentChange;
|
|
85
84
|
constructor(config: IClientConfig, logger: Logger);
|
|
@@ -433,10 +432,6 @@ export default class Client extends Emitter {
|
|
|
433
432
|
* @param { IRecordStatusNotification } data
|
|
434
433
|
*/
|
|
435
434
|
private onRecordStatusNotfiMessage;
|
|
436
|
-
/**
|
|
437
|
-
* 上报远端录制状态
|
|
438
|
-
*/
|
|
439
|
-
private emitRecordStatusNotification;
|
|
440
435
|
/**
|
|
441
436
|
* 处理本地录制结果上报Message
|
|
442
437
|
*
|
package/lib/main/peer.d.ts
CHANGED
|
@@ -233,6 +233,14 @@ export default class Peer {
|
|
|
233
233
|
* @param { RTCRtpTransceiverDirection } direction - 通道方向
|
|
234
234
|
*/
|
|
235
235
|
private replaceTrackProcessor;
|
|
236
|
+
/**
|
|
237
|
+
* 重置sender发送器的编码器scaleResolutionDownBy参数
|
|
238
|
+
*
|
|
239
|
+
* @param { MediaStreamTrack } track - MediaStreamTrack数据
|
|
240
|
+
* @param { RTCRtpSender } sender - 编码发送器
|
|
241
|
+
* @param { IStreamConfig } streamConfig - 自定义流配置
|
|
242
|
+
*/
|
|
243
|
+
private resetEncodingsScale;
|
|
236
244
|
/**
|
|
237
245
|
* 向peer添加Track轨道数据
|
|
238
246
|
*
|
|
@@ -242,6 +250,14 @@ export default class Peer {
|
|
|
242
250
|
* @param { IStreamConfig } streamConfig 自定义Stream流对象
|
|
243
251
|
*/
|
|
244
252
|
private addTransceiver;
|
|
253
|
+
/**
|
|
254
|
+
* 计算编码器分辨率裁剪比例
|
|
255
|
+
*
|
|
256
|
+
* @param { MediaStreamTrack } track - MediaStream Track
|
|
257
|
+
* @param { IStreamConfig } streamConfig - 自定义Stream流对象
|
|
258
|
+
* @returns { number } - 裁剪比例
|
|
259
|
+
*/
|
|
260
|
+
private calculateScaleValue;
|
|
245
261
|
/**
|
|
246
262
|
* 关联自定义stream对象和Sender发送器数据
|
|
247
263
|
*
|
package/lib/main/stream.d.ts
CHANGED
package/lib/tools/utils.d.ts
CHANGED
|
@@ -78,10 +78,3 @@ export declare const TYPEOF: {
|
|
|
78
78
|
isSpecialChar(val: any): boolean;
|
|
79
79
|
isWhiteSpace(val: any): boolean;
|
|
80
80
|
};
|
|
81
|
-
/**
|
|
82
|
-
* JSON字符串转对象
|
|
83
|
-
*
|
|
84
|
-
* @param { any } jsonString
|
|
85
|
-
* @returns { object}
|
|
86
|
-
*/
|
|
87
|
-
export declare const jsonStringToObject: (jsonString: any) => any;
|
package/lib/type/client.d.ts
CHANGED
|
@@ -1103,20 +1103,11 @@ export declare enum AutoMute {
|
|
|
1103
1103
|
export interface IGetConferenceParams {
|
|
1104
1104
|
autoMute: AutoMute;
|
|
1105
1105
|
}
|
|
1106
|
-
/**
|
|
1107
|
-
* 录制相关信息
|
|
1108
|
-
*
|
|
1109
|
-
* @property { string } recordSessionId - sessionId
|
|
1110
|
-
*/
|
|
1111
|
-
export interface IRecordInfo {
|
|
1112
|
-
recordSessionId: string;
|
|
1113
|
-
}
|
|
1114
1106
|
/**
|
|
1115
1107
|
* 本地录制结果上报
|
|
1116
1108
|
*
|
|
1117
1109
|
* @property { string } reason - 成功STATE:200
|
|
1118
1110
|
* @property { RecordingState } state - 录制状态
|
|
1119
|
-
* @property { string } recordInfo - 录制相关信息
|
|
1120
1111
|
* @property { boolean } isRecorded - ignore
|
|
1121
1112
|
* @property { string } controlUri - ignore
|
|
1122
1113
|
* @property { string } reasonText - ignore
|
|
@@ -1124,7 +1115,6 @@ export interface IRecordInfo {
|
|
|
1124
1115
|
export interface IRecordingStateChanged {
|
|
1125
1116
|
reason: string;
|
|
1126
1117
|
state: RecordingState;
|
|
1127
|
-
recordInfo: IRecordInfo;
|
|
1128
1118
|
isRecorded: boolean;
|
|
1129
1119
|
controlUri: string;
|
|
1130
1120
|
reasonText: string;
|
|
@@ -1146,7 +1136,6 @@ export interface IRecordStatusNotification {
|
|
|
1146
1136
|
callerUri: string;
|
|
1147
1137
|
status: string;
|
|
1148
1138
|
isLocal: boolean;
|
|
1149
|
-
recordInfo: IRecordInfo;
|
|
1150
1139
|
}
|
|
1151
1140
|
/**
|
|
1152
1141
|
* 录制权限
|