dingrtc 3.7.4 → 3.8.2-beta.0

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
@@ -252,6 +252,8 @@ declare namespace signal_msg {
252
252
  parameters?: signal_msg.IStreamVideoParameters | null;
253
253
  /** StreamVideoDesc optional */
254
254
  optional?: signal_msg.IVideoStreamOptional | null;
255
+ /** StreamVideoDesc highestResolutionLevel */
256
+ highestResolutionLevel?: number | null;
255
257
  }
256
258
  /** Represents a StreamVideoDesc. */
257
259
  /** Properties of a StreamMediaDesc. */
@@ -807,6 +809,8 @@ declare namespace signal_msg {
807
809
  forwardOnly?: boolean | null;
808
810
  /** VideoStreamTrackDesc mid */
809
811
  mid?: string | null;
812
+ /** VideoStreamTrackDesc highestResolutionLevel */
813
+ highestResolutionLevel?: number | null;
810
814
  }
811
815
  /** Represents a VideoStreamTrackDesc. */
812
816
  /** Properties of a MediaStreamTrackDesc. */
@@ -951,6 +955,8 @@ declare namespace signal_msg {
951
955
  tid?: string | null;
952
956
  /** StreamControlRequest traceId */
953
957
  traceId?: string | null;
958
+ /** StreamControlRequest highestResolutionLevel */
959
+ highestResolutionLevel?: number | null;
954
960
  }
955
961
  /** Represents a StreamControlRequest. */
956
962
  /** Properties of a QueryStreamsRequest. */
@@ -1067,6 +1073,8 @@ declare namespace signal_msg {
1067
1073
  activeStream?: string | null;
1068
1074
  /** StreamMsg propertiesJsonStr */
1069
1075
  propertiesJsonStr?: string | null;
1076
+ /** StreamMsg highestResolutionLevel */
1077
+ highestResolutionLevel?: number | null;
1070
1078
  }
1071
1079
  /** Represents a StreamMsg. */
1072
1080
  /** Properties of a StreamNotification. */
@@ -1687,6 +1695,7 @@ declare class Publication extends EventEmitter<IPublishEvents> {
1687
1695
  unmute(): Promise<signal_msg.IResponse>;
1688
1696
  initInner(id: string): void;
1689
1697
  private handleMirror;
1698
+ private handleRepublish;
1690
1699
  private handleTracEvent;
1691
1700
  clear(): void;
1692
1701
  applyOptions(mediaMessages: MediaMessage[]): void;
@@ -1773,7 +1782,6 @@ declare class PeerConnection extends EventEmitter<IPeerConnectionEvents> {
1773
1782
  sessionManager: SessionManager;
1774
1783
  prevId: string;
1775
1784
  offerSDP: SessionDescription;
1776
- simulcastEnabled: boolean;
1777
1785
  clientFailoverTimer: number;
1778
1786
  audioSfuSsrcs: signal_msg.IAudioSsrcSpec[];
1779
1787
  id: string;
@@ -1813,6 +1821,7 @@ interface SubscriptionOptions {
1813
1821
  stream?: signal_msg.IStream;
1814
1822
  connection?: PeerConnection;
1815
1823
  resolutionInfo?: ResolutionInfo$1;
1824
+ userConfigResolution?: ResolutionInfo$1;
1816
1825
  uid?: string;
1817
1826
  }
1818
1827
  /**
@@ -1827,6 +1836,7 @@ declare class Subscription extends EventEmitter<ISubscribeEvents> {
1827
1836
  id: string;
1828
1837
  state: PubSubStates;
1829
1838
  private monitor;
1839
+ userConfigResolution: ResolutionInfo$1;
1830
1840
  connection: PeerConnection;
1831
1841
  private signaling;
1832
1842
  private _stream;
@@ -1843,7 +1853,7 @@ declare class Subscription extends EventEmitter<ISubscribeEvents> {
1843
1853
  stop(): Promise<void | signal_msg.IResponse>;
1844
1854
  mute(mediaType: TrackMediaType): Promise<signal_msg.IResponse>;
1845
1855
  unmute(mediaType: TrackMediaType): Promise<signal_msg.IResponse>;
1846
- applyOptions(resolutionInfo: ResolutionInfo$1): Promise<signal_msg.IResponse>;
1856
+ applyOptions(resolutionInfo: ResolutionInfo$1, inner?: boolean): Promise<signal_msg.IResponse>;
1847
1857
  reset(): void;
1848
1858
  clear(): void;
1849
1859
  addTransceiver(transceiver: RTCRtpTransceiver): void;
@@ -2285,6 +2295,7 @@ interface StreamEventPlayload {
2285
2295
  updateStatus?: DeviceAction;
2286
2296
  mediaType?: TrackMediaType$1;
2287
2297
  properties?: any;
2298
+ highestResolutionLevel?: number;
2288
2299
  }
2289
2300
  interface StreamManagerEvent {
2290
2301
  stream: (action: StreamEventAction, payload: StreamEventPlayload) => void;
@@ -2381,12 +2392,13 @@ type VideoDimension = 'VD_120x120' | 'VD_160x120' | 'VD_180x180' | 'VD_240x180'
2381
2392
  * 订阅远端视频流模式
2382
2393
  * high 高分辨率、高码率的视频流;
2383
2394
  * low 低分辨率、低码率的视频流;
2395
+ // * QHD 超高清流,1080P收费档;
2384
2396
  * FHD 超高清流,1080P收费档;
2385
2397
  * HD 高清流,720P收费档;
2386
2398
  * SD 标清,480P收费档;
2387
2399
  * LD 流畅,480P收费档;
2388
2400
  */
2389
- type RemoteStreamType = 'high' | 'low' | 'FHD' | 'HD' | 'SD' | 'LD';
2401
+ type RemoteStreamType = 'high' | 'low' | 'FHD' | 'HD' | 'SD' | 'LD' | 'QHD';
2390
2402
  type TrackMediaType = 'audio' | 'video';
2391
2403
  /**
2392
2404
  * 创建麦克风音频流时的配置对象
@@ -2522,6 +2534,8 @@ interface GlobalClientConfigInfo {
2522
2534
  gslb?: string | string[];
2523
2535
  simulcast?: boolean;
2524
2536
  audioSFU?: boolean;
2537
+ republish?: boolean;
2538
+ disableTransportCC?: boolean;
2525
2539
  }
2526
2540
  /**
2527
2541
  * 加入频道所需信息
@@ -3290,7 +3304,7 @@ interface IBatchSubscribeResult {
3290
3304
  uid?: string;
3291
3305
  id?: string;
3292
3306
  }
3293
- type RidType = 'lld' | 'ld' | 'sd' | 'hd' | 'fhd';
3307
+ type RidType = 'lld' | 'ld' | 'sd' | 'hd' | 'fhd' | 'qhd';
3294
3308
  interface MediaMessage {
3295
3309
  rid: RidType;
3296
3310
  mid: string;
@@ -3306,7 +3320,8 @@ interface SenderEncoding {
3306
3320
  maxBitrate: number;
3307
3321
  minBitrate: number;
3308
3322
  scaleResolutionDownBy: number;
3309
- active: boolean;
3323
+ activeForBitrateMap?: boolean;
3324
+ activeForRealuse?: boolean;
3310
3325
  targetWidth?: number;
3311
3326
  targetHeight?: number;
3312
3327
  priority?: string;