@rongcloud/plugin-rtc 5.5.4-alpha.2 → 5.5.4-alpha.3

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
@@ -1,10 +1,10 @@
1
1
  /*
2
- * RCRTC - v5.5.4-alpha.2
3
- * CommitId - 6a4ddd72afc98e179707633218f3c02265a15869
4
- * Sat Oct 08 2022 23:09:53 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.4-alpha.3
3
+ * CommitId - 3f61ac223f73eedac265c308f3a0f311af3985a7
4
+ * Sun Oct 09 2022 21:12:19 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
- import { EventEmitter, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, LogLevel, IPluginGenerator } from '@rongcloud/engine';
7
+ import { EventEmitter, BasicLogger, INaviInfo, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IRuntime, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, EnableLogL, IPluginGenerator } from '@rongcloud/engine';
8
8
 
9
9
  /**
10
10
  * 错误码,与移动端对齐
@@ -173,6 +173,7 @@ declare abstract class RCTrack extends EventEmitter {
173
173
  protected readonly _streamId: string;
174
174
  protected _msTrack?: MediaStreamTrack;
175
175
  private _msStream;
176
+ protected _logger: BasicLogger | null;
176
177
  constructor(_tag: string, _userId: string, _kind: 'audio' | 'video', _isLocalTrack: boolean, _roomId?: string | undefined);
177
178
  /**
178
179
  * 获取音视轨所属的 streamId,streamId 相同的音轨和视轨可认为属于统一道流
@@ -1495,6 +1496,7 @@ declare class RTCContext {
1495
1496
  roomCreateTime: number | undefined;
1496
1497
  userJoinTime: number | undefined;
1497
1498
  constructor(context: RTCPluginContext, codec: AbsCodec<RTCKeyMaps>);
1499
+ logger: BasicLogger | null;
1498
1500
  joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
1499
1501
  quitRTCRoom(roomId: string): Promise<ErrorCode>;
1500
1502
  getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
@@ -1618,7 +1620,7 @@ declare class RCMediaService {
1618
1620
  * 请求超时时长
1619
1621
  */
1620
1622
  _timeout?: number);
1621
- detectorMediaSever(newNaviInfo?: INaviInfo | null): void;
1623
+ detectorMediaSever(): void;
1622
1624
  /**
1623
1625
  * 地址探测
1624
1626
  * RTC 初始化时检测是否可以拿到 navi,可以拿到开始嗅探
@@ -2904,6 +2906,7 @@ declare class PolarisHttpReporter {
2904
2906
  private _useHttp;
2905
2907
  constructor(_context: RTCContext, _runtime: IRuntime, _roomId: string, _crtRTCRoom: RCAbstractRoom | RCAudienceLivingRoom, _userRole?: PolarisRole);
2906
2908
  private _send;
2909
+ private _refetchNaviInfo;
2907
2910
  /**
2908
2911
  * 小流需去掉 _tiny,小流 resourceId 为 userId_tag_mediaType_tiny
2909
2912
  */
@@ -2961,6 +2964,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
2961
2964
  private _isDestroyed;
2962
2965
  private _reportStatsData?;
2963
2966
  private _originReportStatsData?;
2967
+ private _logger;
2964
2968
  constructor(
2965
2969
  /**
2966
2970
  * peerConnection 对应名称
@@ -3670,16 +3674,16 @@ interface IRCRTCInitOptions {
3670
3674
  /**
3671
3675
  * 输出日志等级,生产环境默认使用 WARN,开发环境默认为 DEBUG
3672
3676
  * @description
3673
- * * 0 - DEBUG
3674
- * * 1 - INFO
3677
+ * * 4 - DEBUG
3678
+ * * 3 - INFO
3675
3679
  * * 2 - WARN
3676
- * * 3 - ERROR
3680
+ * * 1 - ERROR
3677
3681
  */
3678
- logLevel?: LogLevel;
3682
+ logLevel?: EnableLogL;
3679
3683
  /**
3680
3684
  * 修改默认的 log 输出函数
3681
3685
  */
3682
- logStdout?: (logLevel: LogLevel, content: string) => void;
3686
+ logStdout?: (logLevel: EnableLogL, content: string) => void;
3683
3687
  /**
3684
3688
  * 与 MediaServer 的 http 请求超时时间,单位为毫秒,默认值为 `5000`,有效值 `5000-30000`。
3685
3689
  * 优先级:用户配置 > 导航配置 > 默认时间。