dingrtc 3.8.13 → 3.8.14
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 +12 -3
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1729,6 +1729,11 @@ declare class SessionManager extends EventEmitter<SessionManagerEvent> {
|
|
|
1729
1729
|
* TODO: 确认为什么 repub 不需要响应服务端的 reoffer 消息?
|
|
1730
1730
|
*/
|
|
1731
1731
|
private handleRepulish;
|
|
1732
|
+
/**
|
|
1733
|
+
* @deprecated
|
|
1734
|
+
* @param sessions
|
|
1735
|
+
* @returns
|
|
1736
|
+
*/
|
|
1732
1737
|
handleStuckResubscribe(sessions: Subscription[]): Promise<void>;
|
|
1733
1738
|
private handleResubscribe;
|
|
1734
1739
|
getSessionByStreamId(id: string): Subscription;
|
|
@@ -1750,6 +1755,10 @@ declare class SessionManager extends EventEmitter<SessionManagerEvent> {
|
|
|
1750
1755
|
getRemoteVideoStats(from?: string): Promise<RemoteVideoStatesMap>;
|
|
1751
1756
|
getRemoteAudioStats(from?: string): Promise<RemoteAudioStates>;
|
|
1752
1757
|
handleMediaMessage(payload: signal_msg.IMediaMessage): Promise<void>;
|
|
1758
|
+
/**
|
|
1759
|
+
* 通过已经订阅的session对象获取对应的remoteTrack
|
|
1760
|
+
*/
|
|
1761
|
+
private getRemoteVideoTrackBySubscription;
|
|
1753
1762
|
}
|
|
1754
1763
|
|
|
1755
1764
|
interface IPeerConnectionEvents {
|
|
@@ -3391,7 +3400,7 @@ interface SubscribeActionParam {
|
|
|
3391
3400
|
}
|
|
3392
3401
|
type TRACK_EVENT_ACTION = 'replace' | 'mute' | 'unmute' | 'stop' | 'republish' | 'optimizationMode' | 'mirror';
|
|
3393
3402
|
interface InnerPlayConfig {
|
|
3394
|
-
|
|
3403
|
+
mediaWrapperElement?: string | HTMLElement;
|
|
3395
3404
|
config?: VideoPlayerConfig;
|
|
3396
3405
|
updated?: boolean;
|
|
3397
3406
|
}
|
|
@@ -3431,7 +3440,7 @@ declare class LocalTrack extends Track {
|
|
|
3431
3440
|
* @internal
|
|
3432
3441
|
*/
|
|
3433
3442
|
protected setMediaStreamTrack(track: MediaStreamTrack): void;
|
|
3434
|
-
play(
|
|
3443
|
+
play(mediaWrapperElement?: string | HTMLElement, config?: VideoPlayerConfig): void;
|
|
3435
3444
|
/**
|
|
3436
3445
|
* 启用/禁用该轨道。
|
|
3437
3446
|
*
|
|
@@ -3644,7 +3653,7 @@ declare class RemoteVideoTrack extends RemoteTrack {
|
|
|
3644
3653
|
* - HTMLElement: 直接传入一个 DOM 元素对象。
|
|
3645
3654
|
* @param config 视频媒体播放参数
|
|
3646
3655
|
*/
|
|
3647
|
-
play(
|
|
3656
|
+
play(mediaWrapperElement: string | HTMLElement, config?: VideoPlayerConfig): void;
|
|
3648
3657
|
/**
|
|
3649
3658
|
* @internal
|
|
3650
3659
|
* 响应镜像播放
|