dingrtc 3.9.18-beta.2 → 3.9.20
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/index.d.ts +21 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.js +1 -1
- package/dist/index.umd.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1518,6 +1518,10 @@ interface VideoTrackStatsInfo {
|
|
|
1518
1518
|
pliCount?: number;
|
|
1519
1519
|
nackCount?: number;
|
|
1520
1520
|
qualityLimitationReason?: string;
|
|
1521
|
+
web_powerEfficientEncoder?: boolean;
|
|
1522
|
+
web_encoderImplementation?: string;
|
|
1523
|
+
web_qualityLimitationResolutionChanges?: number;
|
|
1524
|
+
web_codecId?: string;
|
|
1521
1525
|
qualityLimitationDurations?: string;
|
|
1522
1526
|
keyFramesEncoded?: number;
|
|
1523
1527
|
rid?: string;
|
|
@@ -1613,6 +1617,7 @@ interface PublicationMetrics {
|
|
|
1613
1617
|
id?: string;
|
|
1614
1618
|
audioMetrics?: AudioSendInfo;
|
|
1615
1619
|
videoMetrics?: VideoSendInfo;
|
|
1620
|
+
originStats?: RTCStatsReport;
|
|
1616
1621
|
}
|
|
1617
1622
|
interface SubscriptionMetrics {
|
|
1618
1623
|
id?: string;
|
|
@@ -2185,7 +2190,8 @@ declare class DingRTCClient extends EventEmitter<IClientEvents> {
|
|
|
2185
2190
|
private syncStatTimer;
|
|
2186
2191
|
private clientStatSync;
|
|
2187
2192
|
private currentClientState;
|
|
2188
|
-
|
|
2193
|
+
private deviceChecker;
|
|
2194
|
+
constructor(plugins?: Record<string, any>);
|
|
2189
2195
|
/**
|
|
2190
2196
|
* 远端用户信息列表,包含频道中各个远端用户的用户 ID 和轨道信息。
|
|
2191
2197
|
*
|
|
@@ -2220,6 +2226,7 @@ declare class DingRTCClient extends EventEmitter<IClientEvents> {
|
|
|
2220
2226
|
* @returns
|
|
2221
2227
|
*/
|
|
2222
2228
|
emit<T extends keyof IClientEvents>(event: T, ...args: any): boolean;
|
|
2229
|
+
startPlugin(pluginName: string, options?: Record<string, any>): Promise<any>;
|
|
2223
2230
|
/**
|
|
2224
2231
|
* 加入频道,在同一个频道内的用户可以互相通话。
|
|
2225
2232
|
*
|
|
@@ -3311,8 +3318,13 @@ declare class Track extends EventEmitter<ITrackEvent> {
|
|
|
3311
3318
|
setSource(source: VideoSourceInfo | AudioSourceInfo): void;
|
|
3312
3319
|
/**
|
|
3313
3320
|
* 停止播放
|
|
3321
|
+
* @deprecated 用户很容易跟close接口混淆,使用stopPlay更加明确含义
|
|
3314
3322
|
*/
|
|
3315
3323
|
stop(element?: string | HTMLElement): void;
|
|
3324
|
+
/**
|
|
3325
|
+
* 停止播放
|
|
3326
|
+
*/
|
|
3327
|
+
stopPlay(element?: string | HTMLElement): void;
|
|
3316
3328
|
protected innnerPlay(param: InnerPlayConfig): void;
|
|
3317
3329
|
/**
|
|
3318
3330
|
* 获取媒体轨道
|
|
@@ -3642,6 +3654,13 @@ declare class LocalAudioTrack extends LocalTrack {
|
|
|
3642
3654
|
* 播放本地音频轨道。
|
|
3643
3655
|
*/
|
|
3644
3656
|
play(): void;
|
|
3657
|
+
/**
|
|
3658
|
+
* 替换音视频轨道
|
|
3659
|
+
* @param track 音视频轨道
|
|
3660
|
+
* @param stopOldTrack 是否停止上一个轨道
|
|
3661
|
+
* @override
|
|
3662
|
+
*/
|
|
3663
|
+
replaceTrack(track: MediaStreamTrack, stopOldTrack?: boolean): void;
|
|
3645
3664
|
}
|
|
3646
3665
|
/**
|
|
3647
3666
|
* 本地摄像头视频轨道,继承于 LocalVideoTrack,并在此基础上提供了更换采集设备/调整编码参数的功能。
|
|
@@ -3791,7 +3810,7 @@ declare class DingRTC extends EventEmitter<IGlobalEvent> {
|
|
|
3791
3810
|
/**
|
|
3792
3811
|
* 创建一个客户端实例以进行 RTC 通信
|
|
3793
3812
|
*/
|
|
3794
|
-
createClient(): DingRTCClient;
|
|
3813
|
+
createClient(plugins?: any[]): DingRTCClient;
|
|
3795
3814
|
/**
|
|
3796
3815
|
* 检查 DingRtc Web SDK 对正在使用的浏览器的适配情况。
|
|
3797
3816
|
*
|