@xylink/xy-rtc-sdk 3.9.5 → 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/peer.d.ts +16 -0
- package/lib/main/stream.d.ts +4 -0
- 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/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