dingrtc 3.8.12 → 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 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 {
@@ -1832,6 +1841,10 @@ interface SubscriptionOptions {
1832
1841
  stream?: signal_msg.IStream;
1833
1842
  connection?: PeerConnection;
1834
1843
  resolutionInfo?: ResolutionInfo$1;
1844
+ /**
1845
+ * 记住用户希望的原始reso参数,send param之前需要做校验
1846
+ * resub 的时候需要复用这个参数
1847
+ */
1835
1848
  userConfigResolution?: ResolutionInfo$1;
1836
1849
  uid?: string;
1837
1850
  }
@@ -1865,7 +1878,7 @@ declare class Subscription extends EventEmitter<ISubscribeEvents> {
1865
1878
  stop(): Promise<void | signal_msg.IResponse>;
1866
1879
  mute(mediaType: TrackMediaType): Promise<signal_msg.IResponse>;
1867
1880
  unmute(mediaType: TrackMediaType): Promise<signal_msg.IResponse>;
1868
- applyOptions(resolutionInfo: ResolutionInfo$1, inner?: boolean): Promise<signal_msg.IResponse>;
1881
+ applyOptions(resolutionInfo: ResolutionInfo$1, sdkInnerInvoke?: boolean): Promise<signal_msg.IResponse>;
1869
1882
  reset(): void;
1870
1883
  clear(): void;
1871
1884
  addTransceiver(transceiver: RTCRtpTransceiver): void;
@@ -3387,7 +3400,7 @@ interface SubscribeActionParam {
3387
3400
  }
3388
3401
  type TRACK_EVENT_ACTION = 'replace' | 'mute' | 'unmute' | 'stop' | 'republish' | 'optimizationMode' | 'mirror';
3389
3402
  interface InnerPlayConfig {
3390
- element?: string | HTMLElement;
3403
+ mediaWrapperElement?: string | HTMLElement;
3391
3404
  config?: VideoPlayerConfig;
3392
3405
  updated?: boolean;
3393
3406
  }
@@ -3427,7 +3440,7 @@ declare class LocalTrack extends Track {
3427
3440
  * @internal
3428
3441
  */
3429
3442
  protected setMediaStreamTrack(track: MediaStreamTrack): void;
3430
- play(element?: string | HTMLElement, config?: VideoPlayerConfig): void;
3443
+ play(mediaWrapperElement?: string | HTMLElement, config?: VideoPlayerConfig): void;
3431
3444
  /**
3432
3445
  * 启用/禁用该轨道。
3433
3446
  *
@@ -3640,7 +3653,7 @@ declare class RemoteVideoTrack extends RemoteTrack {
3640
3653
  * - HTMLElement: 直接传入一个 DOM 元素对象。
3641
3654
  * @param config 视频媒体播放参数
3642
3655
  */
3643
- play(element: string | HTMLElement, config?: VideoPlayerConfig): void;
3656
+ play(mediaWrapperElement: string | HTMLElement, config?: VideoPlayerConfig): void;
3644
3657
  /**
3645
3658
  * @internal
3646
3659
  * 响应镜像播放