@rongcloud/plugin-rtc 5.7.5-alpha.1 → 5.7.5-alpha.2

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
@@ -348,6 +348,10 @@ declare abstract class RCLocalTrack extends RCTrack {
348
348
  * 本地流已销毁
349
349
  */
350
350
  static __INNER_EVENT_DESTROY__: string;
351
+ /**
352
+ * 内部发送两秒视频
353
+ */
354
+ static __INNER_SEND_TWO_SECONDS_VIDEO__: string;
351
355
  /**
352
356
  * track 是否被销毁
353
357
  */
@@ -1507,6 +1511,10 @@ interface ISendTrackState extends IRCTrackStat {
1507
1511
  * 流状态(0:不可用, 1:可用)
1508
1512
  */
1509
1513
  trackState: TrackState;
1514
+ /**
1515
+ * 发送帧数
1516
+ */
1517
+ framesSent?: number;
1510
1518
  }
1511
1519
  /**
1512
1520
  * receive track 所有字段
@@ -1967,6 +1975,10 @@ interface IRCRTCInitOptions {
1967
1975
  * 加密机创建参数
1968
1976
  */
1969
1977
  encryptor?: IRCEncryptorHooks;
1978
+ /**
1979
+ * 是否开启 WebRTC 问题检测器,默认为 `false`
1980
+ */
1981
+ isOpenWebRTCIssueDetector?: boolean;
1970
1982
  }
1971
1983
  interface ICameraVideoProfile extends IVideoProfile {
1972
1984
  cameraId?: string;
@@ -3386,6 +3398,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
3386
3398
  * 是否是房间内观众
3387
3399
  */
3388
3400
  private readonly _isRoomAudience;
3401
+ private readonly _options;
3389
3402
  static __INNER_EVENT_TRACK_READY__: string;
3390
3403
  static __INNER_AUDIOLEVEL_CHANGE__: string;
3391
3404
  static __INNER_ICE_STATE_CHANGE__: string;
@@ -3399,6 +3412,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
3399
3412
  private _reportR3R4ToPolarisTimer;
3400
3413
  private _isDestroyed;
3401
3414
  private _formatStatsData?;
3415
+ private _WebRTCIssueDetector?;
3402
3416
  constructor(_logger: BasicLogger,
3403
3417
  /**
3404
3418
  * _reTryExchange 方法
@@ -3419,11 +3433,16 @@ declare class RCRTCPeerConnection extends EventEmitter {
3419
3433
  /**
3420
3434
  * 是否是房间内观众
3421
3435
  */
3422
- _isRoomAudience?: boolean,
3423
- /**
3424
- * 是否启用自定义加密
3425
- */
3426
- encrypt?: boolean);
3436
+ _isRoomAudience?: boolean, _options?: {
3437
+ /**
3438
+ * 是否启用自定义加密
3439
+ */
3440
+ encrypt: boolean;
3441
+ /**
3442
+ * 是否开启 WebRTC 问题检测器
3443
+ */
3444
+ isOpenWebRTCIssueDetector: boolean;
3445
+ });
3427
3446
  getLocalTracks(): RCLocalTrack[];
3428
3447
  private _onConnectionStateChange;
3429
3448
  private startAutoExecute;
@@ -3485,6 +3504,13 @@ declare class RCRTCPeerConnection extends EventEmitter {
3485
3504
  * @param listener
3486
3505
  */
3487
3506
  registerReportListener(listener: IRCRTCReportListener | null): void;
3507
+ /**
3508
+ * 判断是否发送了两秒视频
3509
+ * @param framesSent 发送帧数
3510
+ * @param frameRate 发送帧率
3511
+ * @param trackId
3512
+ */
3513
+ private _isSendTwoSecondsVideo;
3488
3514
  /**
3489
3515
  * 组装上行质量报告数据
3490
3516
  */