@rongcloud/plugin-rtc 5.5.4 → 5.5.5-beem-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.
Files changed (114) hide show
  1. package/dist/index.d.ts +524 -39
  2. package/dist/index.esm.js +28857 -15
  3. package/dist/index.js +28886 -15
  4. package/dist/index.umd.js +28890 -15
  5. package/package.json +2 -5
  6. package/dist/async-task-queue.d.ts +0 -9
  7. package/dist/core/Invoker.d.ts +0 -55
  8. package/dist/core/PolarisReporter.d.ts +0 -36
  9. package/dist/core/RCAudienceClient.d.ts +0 -90
  10. package/dist/core/RCMediaStreamCapture.d.ts +0 -124
  11. package/dist/core/RCRTCClient.d.ts +0 -148
  12. package/dist/core/Store.d.ts +0 -86
  13. package/dist/core/codec/RTCContext.d.ts +0 -76
  14. package/dist/core/codec/interface.d.ts +0 -168
  15. package/dist/core/codec/proto.d.ts +0 -94
  16. package/dist/core/codec/rtc-helper.d.ts +0 -17
  17. package/dist/core/command/AsyncCommand.d.ts +0 -55
  18. package/dist/core/command/AsyncSubscribeCommand.d.ts +0 -28
  19. package/dist/core/command/AsyncUnsubscribeCommand.d.ts +0 -28
  20. package/dist/core/command/AsyncUpdateSubscribeListCommand.d.ts +0 -25
  21. package/dist/core/command/BaseCommand.d.ts +0 -31
  22. package/dist/core/command/EnabelInnerCDNCommand.d.ts +0 -16
  23. package/dist/core/command/ExchangeCommand.d.ts +0 -18
  24. package/dist/core/command/ExchangeWithPushOtherRoomCommand.d.ts +0 -22
  25. package/dist/core/command/JoinRoomCommand.d.ts +0 -31
  26. package/dist/core/command/LeaveOtherRoomCommand.d.ts +0 -32
  27. package/dist/core/command/LocalTrackMuteCommand.d.ts +0 -18
  28. package/dist/core/command/MCUConfigFlushCommand.d.ts +0 -18
  29. package/dist/core/command/OnRemoteUserUnpubCommand.d.ts +0 -13
  30. package/dist/core/command/OnSignalReconnectedCommand.d.ts +0 -38
  31. package/dist/core/command/ParseRemoteResCommand.d.ts +0 -38
  32. package/dist/core/command/ParseUserStateCommand.d.ts +0 -57
  33. package/dist/core/command/PubCommand.d.ts +0 -34
  34. package/dist/core/command/PublishCommand.d.ts +0 -36
  35. package/dist/core/command/RTCIdentityChangeCommand.d.ts +0 -18
  36. package/dist/core/command/RetryExchangeCommand.d.ts +0 -18
  37. package/dist/core/command/SubscribeCommand.d.ts +0 -21
  38. package/dist/core/command/UnpublishCommand.d.ts +0 -22
  39. package/dist/core/command/UnpublishPrevCommand.d.ts +0 -11
  40. package/dist/core/command/UnsubscribeCommand.d.ts +0 -20
  41. package/dist/core/command/UpdateSubscribeListCommand.d.ts +0 -28
  42. package/dist/core/command/helper.d.ts +0 -20
  43. package/dist/core/constants.d.ts +0 -4
  44. package/dist/core/enums/BackgroundPictureFillMode.d.ts +0 -14
  45. package/dist/core/enums/MixLayoutMode.d.ts +0 -18
  46. package/dist/core/enums/MixVideoRenderMode.d.ts +0 -14
  47. package/dist/core/enums/RCBitrate.d.ts +0 -48
  48. package/dist/core/enums/RCCommandKind.d.ts +0 -12
  49. package/dist/core/enums/RCFrameRate.d.ts +0 -7
  50. package/dist/core/enums/RCInnerCDNBroadcast.d.ts +0 -5
  51. package/dist/core/enums/RCInnerCDNModel.d.ts +0 -5
  52. package/dist/core/enums/RCInnerCDNPullIsHttps.d.ts +0 -5
  53. package/dist/core/enums/RCInnerCDNPullKind.d.ts +0 -6
  54. package/dist/core/enums/RCInnerCDNPushMode.d.ts +0 -5
  55. package/dist/core/enums/RCKickType.d.ts +0 -11
  56. package/dist/core/enums/RCLinkedListPoint.d.ts +0 -6
  57. package/dist/core/enums/RCLivingType.d.ts +0 -14
  58. package/dist/core/enums/RCLoggerTag.d.ts +0 -649
  59. package/dist/core/enums/RCMediaType.d.ts +0 -18
  60. package/dist/core/enums/RCMixInputFilterMode.d.ts +0 -35
  61. package/dist/core/enums/RCRTCCode.d.ts +0 -93
  62. package/dist/core/enums/RCRTCLiveRole.d.ts +0 -14
  63. package/dist/core/enums/RCRTCPingResult.d.ts +0 -5
  64. package/dist/core/enums/RCRTCResolution.d.ts +0 -132
  65. package/dist/core/enums/RCResolution.d.ts +0 -21
  66. package/dist/core/enums/RTCJoinType.d.ts +0 -18
  67. package/dist/core/enums/RTCMode.d.ts +0 -22
  68. package/dist/core/enums/inner/LiveRole.d.ts +0 -11
  69. package/dist/core/enums/inner/LiveType.d.ts +0 -14
  70. package/dist/core/enums/inner/PolarisRole.d.ts +0 -14
  71. package/dist/core/enums/inner/R2Action.d.ts +0 -14
  72. package/dist/core/enums/inner/R2Status.d.ts +0 -11
  73. package/dist/core/enums/inner/RCRTCMessageType.d.ts +0 -70
  74. package/dist/core/enums/inner/RCStreamType.d.ts +0 -14
  75. package/dist/core/enums/inner/RTCApiType.d.ts +0 -5
  76. package/dist/core/enums/inner/RTCIdentityChangeType.d.ts +0 -5
  77. package/dist/core/enums/inner/TrackState.d.ts +0 -14
  78. package/dist/core/interfaces.d.ts +0 -942
  79. package/dist/core/room/Pinger.d.ts +0 -36
  80. package/dist/core/room/RCAbstractRoom.d.ts +0 -354
  81. package/dist/core/room/RCAudienceLivingRoom.d.ts +0 -334
  82. package/dist/core/room/RCAudioLevelReport.d.ts +0 -16
  83. package/dist/core/room/RCLivingPKHandler.d.ts +0 -165
  84. package/dist/core/room/RCLivingRoom.d.ts +0 -112
  85. package/dist/core/room/RCLocalMediaStream.d.ts +0 -8
  86. package/dist/core/room/RCMCUConfigBuilder.d.ts +0 -211
  87. package/dist/core/room/RCRTCRoom.d.ts +0 -17
  88. package/dist/core/service/RCMediaService.d.ts +0 -121
  89. package/dist/core/service/helper.d.ts +0 -18
  90. package/dist/core/service/index.d.ts +0 -6
  91. package/dist/core/service/interface.d.ts +0 -328
  92. package/dist/core/service/mcu-interface.d.ts +0 -293
  93. package/dist/core/tracks/RC3AnoiseTrack.d.ts +0 -27
  94. package/dist/core/tracks/RCLocalTrack.d.ts +0 -143
  95. package/dist/core/tracks/RCRemoteTrack.d.ts +0 -29
  96. package/dist/core/tracks/RCTrack.d.ts +0 -95
  97. package/dist/core/webrtc/RCRTCPeerCManager.d.ts +0 -161
  98. package/dist/core/webrtc/RCRTCPeerConnection.d.ts +0 -112
  99. package/dist/core/webrtc/helper.d.ts +0 -26
  100. package/dist/core/webrtc/sdp/ASdpBuilder.d.ts +0 -120
  101. package/dist/core/webrtc/sdp/ASdpStrategy.d.ts +0 -53
  102. package/dist/core/webrtc/sdp/PlanBSdpBuilder.d.ts +0 -20
  103. package/dist/core/webrtc/sdp/PlanBStrategy.d.ts +0 -26
  104. package/dist/core/webrtc/sdp/SDPUtils.d.ts +0 -60
  105. package/dist/core/webrtc/sdp/UnifiedPlanSdpBuilder.d.ts +0 -11
  106. package/dist/core/webrtc/sdp/UnifiedPlanStrategy.d.ts +0 -25
  107. package/dist/core/webrtc/stat-parser/AbstractStatParser.d.ts +0 -117
  108. package/dist/core/webrtc/stat-parser/ChromeStatParser.d.ts +0 -14
  109. package/dist/core/webrtc/stat-parser/FirefoxStatParser.d.ts +0 -14
  110. package/dist/core/webrtc/stat-parser/IStatParser.d.ts +0 -24
  111. package/dist/core/webrtc/stat-parser/SafariStatParser.d.ts +0 -14
  112. package/dist/device.d.ts +0 -6
  113. package/dist/helper.d.ts +0 -195
  114. package/dist/logger.d.ts +0 -4
package/dist/index.d.ts CHANGED
@@ -1,11 +1,10 @@
1
1
  /*
2
- * RCRTC - v5.5.4
3
- * CommitId - 80b0c1d49cb6cbe32c4b66a016063568d6893014
4
- * Sun Oct 09 2022 17:26:05 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.5.5-beem-alpha.2
3
+ * CommitId - 53292a559174278ff032c3811be232015e47f007
4
+ * Fri Oct 14 2022 11:08:06 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
- import * as _rongcloud_engine from '@rongcloud/engine';
8
- import { EventEmitter, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KVString, IAsyncRes, ConnectionStatus, ConversationType, ISendMsgOptions, IReceivedMessage, IRuntime, 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';
9
8
 
10
9
  /**
11
10
  * 错误码,与移动端对齐
@@ -20,6 +19,8 @@ import { EventEmitter, RTCPluginContext, AbsCodec, IPromiseResult, ErrorCode, KV
20
19
  declare enum RCRTCCode {
21
20
  /** 成功 */
22
21
  SUCCESS = 10000,
22
+ /** PB 错误 */
23
+ PB_ERROR = 40001,
23
24
  /** IM 服务未连接 */
24
25
  SIGNAL_DISCONNECTED = 50000,
25
26
  /** 参数错误 */
@@ -172,6 +173,7 @@ declare abstract class RCTrack extends EventEmitter {
172
173
  protected readonly _streamId: string;
173
174
  protected _msTrack?: MediaStreamTrack;
174
175
  private _msStream;
176
+ protected _logger: BasicLogger | null;
175
177
  constructor(_tag: string, _userId: string, _kind: 'audio' | 'video', _isLocalTrack: boolean, _roomId?: string | undefined);
176
178
  /**
177
179
  * 获取音视轨所属的 streamId,streamId 相同的音轨和视轨可认为属于统一道流
@@ -538,11 +540,11 @@ declare enum RCRTCPingResult {
538
540
  */
539
541
  declare enum RCRTCLiveRole {
540
542
  /**
541
- * 主播
543
+ * 主播降级
542
544
  */
543
545
  ANCHOR = 1,
544
546
  /**
545
- * 观众
547
+ * 观众升级
546
548
  */
547
549
  AUDIENCE = 2
548
550
  }
@@ -646,7 +648,19 @@ declare enum RTCMode {
646
648
  /**
647
649
  * 跨应用直播
648
650
  */
649
- CROSS_LIVE = 8
651
+ CROSS_LIVE = 8,
652
+ /**
653
+ * sip呼叫
654
+ */
655
+ SIP = 4,
656
+ /**
657
+ * 呼叫模式.包括单呼和群呼
658
+ */
659
+ CALL = 5,
660
+ /**
661
+ * 会议
662
+ */
663
+ MEETING = 6
650
664
  }
651
665
 
652
666
  /**
@@ -1241,8 +1255,9 @@ declare enum RTCIdentityChangeType {
1241
1255
  }
1242
1256
 
1243
1257
  declare const keymaps: {
1244
- readonly RtcInput: readonly ["roomType", "broadcastType", "extraInnerData", "needSysChatroom", "identityChangeType", "joinType", "innerDatas", "outerDatas"];
1245
- readonly RtcUserListOutput: readonly ["users", "token", "sessionId", "roomInfo"];
1258
+ readonly RtcInput: readonly ["roomType", "broadcastType", "extraInnerData", "needSysChatroom", "identityChangeType", "joinType", "innerDatas", "outerDatas", "supportNtf"];
1259
+ readonly RtcOutput: readonly ["version"];
1260
+ readonly RtcUserListOutput: readonly ["users", "token", "sessionId", "roomInfo", "version"];
1246
1261
  readonly SetUserStatusInput: readonly ["status"];
1247
1262
  readonly RtcSetDataInput: readonly ["interior", "target", "key", "value", "objectName", "content"];
1248
1263
  readonly RtcUserSetDataInput: readonly ["valueInfo", "objectName", "content"];
@@ -1266,6 +1281,16 @@ declare const keymaps: {
1266
1281
  readonly RtcCancelInviteInput: readonly ["invitedUserId", "invitedRoomId", "inviteInfo", "inviteSessionId"];
1267
1282
  readonly RtcInviteAnswerInput: readonly ["inviteUserId", "answerCode", "inviteRoomId", "inviteSessionId", "content", "key", "value"];
1268
1283
  readonly RtcEndInviteInput: readonly ["inviteRoomId", "inviteSessionId", "inviteContent", "inviteRoomKeys"];
1284
+ readonly RtcRoomStatusInput: readonly ["version"];
1285
+ readonly RtcRoomStatusOutput: readonly ["bFullStatus", "version", "usersData", "roomStatus"];
1286
+ readonly RtcReportSDKInput: readonly ["sdkInfo"];
1287
+ readonly RCRTCPBPolaris: readonly ["type", "appKey", "sessionId", "roomId", "roomCreateTime", "userId", "userRole", "joinTime", "signalDataCenter", "r1Info", "r2Info", "r3Info", "r4Info"];
1288
+ readonly RCRTCPBR1Info: readonly ["joinTime", "rtcVersion", "imVersion", "platform", "device", "os", "browserName", "browserVersion"];
1289
+ readonly RCRTCPBR2Info: readonly ["joinTime", "sendTime", "rtcActionType", "rtcActionStatus", "trackId"];
1290
+ readonly RCRTCPBR3Info: readonly ["info"];
1291
+ readonly RCRTCPBR4Info: readonly ["info"];
1292
+ readonly RCRTCPBStatusInfo: readonly ["joinTime", "receiveTime", "totalBitRate", "appCPUUsage", "systemCPUUsage", "systemCPUFrequency", "networkStatus", "googleRTTNetwork", "ipAddress", "useReceiveBroadBand", "useSendBroadBand", "packetLossCount", "streams"];
1293
+ readonly RCRTCPBStreamInfo: readonly ["trackId", "codeName", "volume", "samplingRate", "bitRate", "packetLossRate", "frameRate", "resolution", "blockTime", "jitterData", "nAckCount", "pliCount", "googleRTTTotalTime", "isReceiveFirstFrameRate", "codeType", "isEnabled"];
1269
1294
  };
1270
1295
  declare type RTCKeyMaps = typeof keymaps;
1271
1296
 
@@ -1331,6 +1356,10 @@ interface IJoinRTCRoomData extends IRTCUsers {
1331
1356
  }[];
1332
1357
  kvEntries: IServerRTCRoomEntry[];
1333
1358
  offlineKickTime: number;
1359
+ codeFormat?: string;
1360
+ roomCreateTime?: number;
1361
+ userJoinTime?: number;
1362
+ version: number;
1334
1363
  }
1335
1364
  interface IReqRoomPKOptions {
1336
1365
  /**
@@ -1436,11 +1465,42 @@ interface IEndRoomPKOptions {
1436
1465
  */
1437
1466
  keys: string[];
1438
1467
  }
1468
+ interface IRTCNaviInfo extends INaviInfo {
1469
+ /**
1470
+ * jwt token
1471
+ */
1472
+ jwt?: string;
1473
+ /**
1474
+ * http3 上报域名
1475
+ */
1476
+ logServer?: string;
1477
+ /**
1478
+ * 数据中心
1479
+ */
1480
+ dc?: string;
1481
+ /**
1482
+ * openGzip 开启标识,默认是false,开启使用true
1483
+ */
1484
+ openGzip?: boolean;
1485
+ }
1486
+
1487
+ /**
1488
+ * 自定义上报北极星数据响应 code
1489
+ */
1490
+ declare enum RCSendCode {
1491
+ NOT_REPORT = -1,
1492
+ REPORT_SUCCESS = 10000,
1493
+ REPORT_FAIL = 0,
1494
+ PB_ERROR = 40001
1495
+ }
1439
1496
 
1440
1497
  declare class RTCContext {
1441
1498
  private context;
1442
1499
  private codec;
1500
+ roomCreateTime: number | undefined;
1501
+ userJoinTime: number | undefined;
1443
1502
  constructor(context: RTCPluginContext, codec: AbsCodec<RTCKeyMaps>);
1503
+ logger: BasicLogger | null;
1444
1504
  joinRTCRoom(roomId: string, mode: RTCMode, broadcastType?: number, joinType?: RTCJoinType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): IPromiseResult<IJoinRTCRoomData>;
1445
1505
  quitRTCRoom(roomId: string): Promise<ErrorCode>;
1446
1506
  getRTCRoomInfo(roomId: string): IPromiseResult<IRTCRoomInfo>;
@@ -1472,6 +1532,10 @@ declare class RTCContext {
1472
1532
  getRTCOutData(roomId: string, userIds: string[]): IPromiseResult<unknown>;
1473
1533
  getRTCToken(roomId: string, mode: number, broadcastType?: number): IPromiseResult<IRtcTokenData>;
1474
1534
  setRTCState(roomId: string, report: string): Promise<ErrorCode>;
1535
+ /**
1536
+ * 通过 http 方式上报 rtc state
1537
+ */
1538
+ setRTCStateByHttp(logServer: string, runtime: IRuntime, report: IRCRTCReportData, reportType: string): Promise<RCSendCode | RCRTCCode>;
1475
1539
  getRTCUserList(roomId: string): IPromiseResult<IRTCUsers>;
1476
1540
  joinLivingRoomAsAudience(roomId: string, mode: RTCMode, broadcastType?: number): Promise<IAsyncRes<{
1477
1541
  token: string;
@@ -1485,16 +1549,41 @@ declare class RTCContext {
1485
1549
  endRoomPK(options: IEndRoomPKOptions): Promise<ErrorCode>;
1486
1550
  getRTCJoinedUserInfo(userId: string): Promise<IAsyncRes<IRTCJoinedInfo[]>>;
1487
1551
  pullRTCRoomEntry(roomId: string): Promise<IAsyncRes<IChrmKVPullData>>;
1552
+ /**
1553
+ * 通知拉取房间数据
1554
+ * @param roomId 房间 id
1555
+ * @param version 本地最大得房间数据版本号
1556
+ */
1557
+ pullRTCRoomStatus(roomId: string, version: number): Promise<{
1558
+ code: ErrorCode;
1559
+ data?: IPullRTCRoomStatus;
1560
+ }>;
1488
1561
  decodeRtcNotify(buffer: Uint8Array): {
1489
- time: any;
1562
+ time: number;
1490
1563
  type: any;
1491
1564
  roomId: any;
1492
1565
  };
1493
1566
  getCurrentId(): string;
1494
- getNaviInfo(): _rongcloud_engine.INaviInfo | null;
1567
+ getNaviInfo(): IRTCNaviInfo | null;
1495
1568
  getConnectionStatus(): ConnectionStatus;
1496
1569
  getAppkey(): string;
1497
- rtcPing(roomId: string, roomMode: number, broadcastType?: number): Promise<ErrorCode>;
1570
+ /** web 端发 rtcPing */
1571
+ webRtcPing(roomId: string, roomMode: RTCMode, broadcastType?: number): Promise<{
1572
+ code: ErrorCode;
1573
+ data?: {
1574
+ version: number;
1575
+ };
1576
+ }>;
1577
+ /**
1578
+ * 协议栈 rtcping 依赖 imlib 编解码数据
1579
+ * web 单独走 imlib 提供的 rtcSignaling 方法,减少对 imlib 的依赖
1580
+ */
1581
+ rtcPing(roomId: string, roomMode: RTCMode, broadcastType?: number): Promise<{
1582
+ code: ErrorCode;
1583
+ data?: {
1584
+ version: number;
1585
+ } | undefined;
1586
+ }> | Promise<IAsyncRes<any>>;
1498
1587
  sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions): IPromiseResult<IReceivedMessage>;
1499
1588
  registerRTCSignalListener(listener?: ((buffer: Uint8Array) => void) | undefined): void;
1500
1589
  registerConnectionStateChangeListener(listener: (status: ConnectionStatus) => void): void;
@@ -1503,6 +1592,9 @@ declare class RTCContext {
1503
1592
  registerMessageListener(listener: (message: IReceivedMessage) => boolean): void;
1504
1593
  getCoreVersion(): string;
1505
1594
  getPluginContext(): RTCPluginContext;
1595
+ reportSDKInfo(versionInfo: {
1596
+ [name: string]: string;
1597
+ }): void;
1506
1598
  }
1507
1599
 
1508
1600
  declare class RCMediaService {
@@ -1546,7 +1638,7 @@ declare class RCMediaService {
1546
1638
  private static msInDetector;
1547
1639
  private static detectorTime;
1548
1640
  private static detectValidMinute;
1549
- private static naviRefetchCount;
1641
+ static jwtToken: string;
1550
1642
  private _msList;
1551
1643
  constructor(_runtime: IRuntime, _context: RTCContext,
1552
1644
  /**
@@ -1672,6 +1764,7 @@ declare class RCRTCPeerCManager {
1672
1764
  * 存储创建的所有 peerC,key 为 pcName,/exchange 请求中 request header 中的 Peer-Connection-Id 值
1673
1765
  */
1674
1766
  private _mutilPeerC;
1767
+ onTrackTrouble?: Function;
1675
1768
  constructor(
1676
1769
  /**
1677
1770
  * 是否使用多 peerConnection
@@ -1692,7 +1785,7 @@ declare class RCRTCPeerCManager {
1692
1785
  /**
1693
1786
  * 北极星上报模块
1694
1787
  */
1695
- _polarisReport?: PolarisReporter | undefined);
1788
+ _polarisReport?: PolarisHttpReporter | undefined);
1696
1789
  get useMutilPeerC(): boolean;
1697
1790
  /**
1698
1791
  * 根据 track 判断是否为上行
@@ -1812,7 +1905,7 @@ declare abstract class ReadableStore {
1812
1905
  readonly roomId: string;
1813
1906
  readonly crtUserId: string;
1814
1907
  readonly roomMode: RTCMode;
1815
- readonly polarisReport: PolarisReporter;
1908
+ readonly polarisReport: PolarisHttpReporter;
1816
1909
  readonly isUpgrade?: boolean | undefined;
1817
1910
  readonly isMainRoom?: boolean | undefined;
1818
1911
  /**
@@ -1844,7 +1937,8 @@ declare abstract class ReadableStore {
1844
1937
  protected _CDNUris: ICDNUris | null;
1845
1938
  protected _CDNEnable: boolean;
1846
1939
  protected _destroyed: boolean;
1847
- constructor(context: RTCContext, service: RCMediaService, peerMgr: RCRTCPeerCManager, roomId: string, crtUserId: string, roomMode: RTCMode, polarisReport: PolarisReporter, isUpgrade?: boolean | undefined, isMainRoom?: boolean | undefined);
1940
+ protected _roomStatusVersion: number;
1941
+ constructor(context: RTCContext, service: RCMediaService, peerMgr: RCRTCPeerCManager, roomId: string, crtUserId: string, roomMode: RTCMode, polarisReport: PolarisHttpReporter, isUpgrade?: boolean | undefined, isMainRoom?: boolean | undefined);
1848
1942
  get useMutilPeerC(): boolean;
1849
1943
  getResourcesByUserId(userId: string): IPublishedResource[] | undefined;
1850
1944
  getRemoteTrack(trackId: string): RCRemoteTrack | undefined;
@@ -1864,6 +1958,7 @@ declare abstract class ReadableStore {
1864
1958
  getTrackState(trackId: string): 0 | 1;
1865
1959
  getCDNEnable(): boolean;
1866
1960
  getCDNUris(): ICDNUris | null;
1961
+ getRoomStatusVersion(): number;
1867
1962
  }
1868
1963
  declare class Store extends ReadableStore {
1869
1964
  private _initRemoteTracks;
@@ -1878,6 +1973,7 @@ declare class Store extends ReadableStore {
1878
1973
  setCDNUris(uris: ICDNUris | null): void;
1879
1974
  resetSubscribedList(subscribeList: ISubscribeAttr[]): void;
1880
1975
  resetCollectSubscribeList(collectSubscribeList: ISubscribeAttr[]): void;
1976
+ setRoomStatusVersion(version: number): void;
1881
1977
  }
1882
1978
 
1883
1979
  declare enum CommandPriority {
@@ -1944,7 +2040,7 @@ declare class BaseInvoker<STORE> {
1944
2040
  * 房间任务队列管理
1945
2041
  */
1946
2042
  declare class Invoker extends BaseInvoker<Store> {
1947
- constructor(context: RTCContext, service: RCMediaService, peerMrg: RCRTCPeerCManager, roomId: string, crtUserId: string, mode: RTCMode, reporter: PolarisReporter, isUpgrade?: boolean, isMainRoom?: boolean);
2043
+ constructor(context: RTCContext, service: RCMediaService, peerMrg: RCRTCPeerCManager, roomId: string, crtUserId: string, mode: RTCMode, reporter: PolarisHttpReporter, isUpgrade?: boolean, isMainRoom?: boolean);
1948
2044
  /**
1949
2045
  * 获取 store 存储实例,返回值类型 `ReadableStore`,避免非 command 定义中修改内存
1950
2046
  */
@@ -2149,7 +2245,7 @@ declare abstract class RCAbstractRoom extends EventEmitter {
2149
2245
  /**
2150
2246
  * 北极星上报实例
2151
2247
  */
2152
- protected _polarisReport: PolarisReporter | null;
2248
+ protected _polarisReport: PolarisHttpReporter | null;
2153
2249
  /**
2154
2250
  * 音量上报实例
2155
2251
  */
@@ -2165,6 +2261,11 @@ declare abstract class RCAbstractRoom extends EventEmitter {
2165
2261
  * 是否使用多 peerConnection
2166
2262
  */
2167
2263
  _useMutilPeerC?: boolean | undefined, _clientSessionId?: string);
2264
+ /**
2265
+ * 拉取房间数据
2266
+ * @param roomId 房间 id
2267
+ */
2268
+ private _startPullRTCRoomStatus;
2168
2269
  __innerInit(mode: RTCMode, joinType?: RTCJoinType, livingType?: RCLivingType, innerUserDatas?: IRTCUserData, outerUserDatas?: IRTCUserData): Promise<{
2169
2270
  code: RCRTCCode | ErrorCode;
2170
2271
  data?: IJoinRTCRoomData;
@@ -2573,7 +2674,7 @@ declare class RCAudienceLivingRoom {
2573
2674
  /**
2574
2675
  * 北极星上报实例
2575
2676
  */
2576
- protected _polarisReport: PolarisReporter | null;
2677
+ protected _polarisReport: PolarisHttpReporter | null;
2577
2678
  /**
2578
2679
  * 音量上报实例
2579
2680
  */
@@ -2821,7 +2922,7 @@ declare class PolarisReporter {
2821
2922
  * @param resourceId userId_11_1_tiny 改为 userId_11_tiny_video
2822
2923
  */
2823
2924
  private _getPolarisTrackId;
2824
- sendR3R4Data(data: IInnerRCRTCStateReport): Promise<boolean>;
2925
+ sendR3R4Data(data: IInnerRCRTCStateReport): Promise<RCSendCode>;
2825
2926
  /**
2826
2927
  * 加入房间
2827
2928
  */
@@ -2833,6 +2934,49 @@ declare class PolarisReporter {
2833
2934
  sendR2(action: string, status: string, trackIds: string[]): void;
2834
2935
  }
2835
2936
 
2937
+ declare class PolarisHttpReporter {
2938
+ private readonly _context;
2939
+ private readonly _runtime;
2940
+ private readonly _roomId;
2941
+ private readonly _crtRTCRoom;
2942
+ private readonly _userRole;
2943
+ protected _polarisSignalReporter: PolarisReporter | null;
2944
+ private _useHttp;
2945
+ constructor(_context: RTCContext, _runtime: IRuntime, _roomId: string, _crtRTCRoom: RCAbstractRoom | RCAudienceLivingRoom, _userRole?: PolarisRole);
2946
+ private _send;
2947
+ private _refetchNaviInfo;
2948
+ /**
2949
+ * 小流需去掉 _tiny,小流 resourceId 为 userId_tag_mediaType_tiny
2950
+ */
2951
+ private _getRealResourceId;
2952
+ /**
2953
+ * 生成北极星上报的 trackId
2954
+ * @param resourceId userId_11_1_tiny 改为 userId_11_tiny_video
2955
+ */
2956
+ private _getPolarisTrackId;
2957
+ private _formatReportBaseData;
2958
+ private _formatReportData;
2959
+ private _formatR1Data;
2960
+ private _formatR2Data;
2961
+ private _formatR3R4Data;
2962
+ sendR3R4Data(data: IInnerRCRTCStateReport): Promise<RCSendCode>;
2963
+ /**
2964
+ * 加入房间
2965
+ */
2966
+ sendR1(): Promise<void>;
2967
+ /**
2968
+ * RTC 和 LIVE 发布、取消发布
2969
+ * RTC 订阅、取消订阅
2970
+ */
2971
+ sendR2(action: string, status: string, trackIds: string[]): Promise<void>;
2972
+ }
2973
+
2974
+ declare enum RCEncoder {
2975
+ VP8 = "VP8",
2976
+ VP9 = "VP9",
2977
+ H264 = "H264"
2978
+ }
2979
+
2836
2980
  /**
2837
2981
  * PC 实例管理类
2838
2982
  */
@@ -2853,6 +2997,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
2853
2997
  * 北极星上传实例
2854
2998
  */
2855
2999
  private readonly _polarisReport?;
3000
+ private readonly onTrackTrouble?;
2856
3001
  static __INNER_EVENT_TRACK_READY__: string;
2857
3002
  private readonly _rtcPeerConn;
2858
3003
  private readonly _sdpStrategy;
@@ -2862,6 +3007,9 @@ declare class RCRTCPeerConnection extends EventEmitter {
2862
3007
  private _reportStatsTimer;
2863
3008
  private _reportR3R4ToPolarisTimer;
2864
3009
  private _isDestroyed;
3010
+ private _reportStatsData?;
3011
+ private _originReportStatsData?;
3012
+ private _logger;
2865
3013
  constructor(
2866
3014
  /**
2867
3015
  * peerConnection 对应名称
@@ -2878,10 +3026,12 @@ declare class RCRTCPeerConnection extends EventEmitter {
2878
3026
  /**
2879
3027
  * 北极星上传实例
2880
3028
  */
2881
- _polarisReport?: PolarisReporter | undefined);
3029
+ _polarisReport?: PolarisHttpReporter | undefined, onTrackTrouble?: Function | undefined);
2882
3030
  getName(): string;
2883
3031
  getLocalTracks(): RCLocalTrack[];
2884
3032
  private _onConnectionStateChange;
3033
+ private startAutoExecute;
3034
+ private stopAutoExecute;
2885
3035
  private _onICEConnectionStateChange;
2886
3036
  private _onTrackReady;
2887
3037
  /**
@@ -2916,7 +3066,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
2916
3066
  * @returns 返回格式化后的数据
2917
3067
  */
2918
3068
  private _getStatsData;
2919
- getAudioLevelReportData(): Promise<{
3069
+ getAudioLevelReportData(gap?: number): Promise<{
2920
3070
  trackId: string;
2921
3071
  audioLevel: number | null;
2922
3072
  }[] | undefined>;
@@ -2925,6 +3075,10 @@ declare class RCRTCPeerConnection extends EventEmitter {
2925
3075
  * @todo
2926
3076
  */
2927
3077
  private _reportHandle;
3078
+ /**
3079
+ * 获取缓存的本地质量数据
3080
+ */
3081
+ _getCacheStatsData(): IInnerRCRTCStateReport | null | undefined;
2928
3082
  /**
2929
3083
  * 北极星上报 R3、R4 数据
2930
3084
  */
@@ -2934,9 +3088,47 @@ declare class RCRTCPeerConnection extends EventEmitter {
2934
3088
  */
2935
3089
  __reportR3R4ToPolaris(): Promise<void>;
2936
3090
  getRTCPeerConn(): RTCPeerConnection;
3091
+ /**
3092
+ * 它返回一个 RTCRtpCodecCapability 对象数组,第一个元素是与传入的编码器类型匹配的元素
3093
+ * @param {RCEncoder} encoder - RCEncoder.H264
3094
+ * @returns 正在返回 RTCRtpCodecCapability[] 数组。
3095
+ */
3096
+ private getCapabilitiesCodes;
3097
+ /**
3098
+ * 它为视频流设置编码器首选项。
3099
+ * @param {RCEncoder} [encoder] - RC编码器
3100
+ */
3101
+ setEncoderPreferences(encoder?: RCEncoder): Promise<void>;
2937
3102
  destroy(): void;
2938
3103
  clearReTryExchangeTimer(): void;
2939
3104
  isDestroyed(): boolean;
3105
+ /**
3106
+ * 视频不可使用的收集器
3107
+ */
3108
+ private troubleTracksCollection;
3109
+ private setTroubleTrack;
3110
+ }
3111
+
3112
+ /**
3113
+ * 通知拉取到的房间增量数据列表中每一项数据的动作
3114
+ */
3115
+ declare enum PullRoomStatusEvent {
3116
+ /**
3117
+ * 人员加入
3118
+ */
3119
+ JOIN = 0,
3120
+ /**
3121
+ * 人员离开
3122
+ */
3123
+ LEAVE = 1,
3124
+ /**
3125
+ * 人员离线
3126
+ */
3127
+ OFFLINE = 2,
3128
+ /**
3129
+ * 资源变动
3130
+ */
3131
+ RESOURCECHANGE = 3
2940
3132
  }
2941
3133
 
2942
3134
  interface IRCTrackBitrate {
@@ -2974,10 +3166,8 @@ interface IResource {
2974
3166
  uri: string;
2975
3167
  /**
2976
3168
  * 资源特征,simulcast 代表这道流支持大小流
2977
- * @description 此参数存疑,MediaServer 似乎并未下发此字段,Web 端暂不启用
2978
- * @deprecated
2979
3169
  */
2980
- features?: ['simulcast'] | [];
3170
+ simulcast: number;
2981
3171
  }
2982
3172
  /**
2983
3173
  * 向房间内发布的媒体数据
@@ -3238,6 +3428,220 @@ interface IRCRTCStateReport {
3238
3428
  */
3239
3429
  receivers: IRCTrackStat[];
3240
3430
  }
3431
+ /**
3432
+ * http3 北极星上报基础数据
3433
+ */
3434
+ interface IRCRTCReportBaseData {
3435
+ /**
3436
+ * 上报数据类型 R1-R4
3437
+ */
3438
+ type: string;
3439
+ appKey: string;
3440
+ /**
3441
+ * 房间通话id
3442
+ */
3443
+ sessionId: string;
3444
+ roomId: string;
3445
+ /**
3446
+ * 房间创建时间
3447
+ */
3448
+ roomCreateTime: number;
3449
+ userId: string;
3450
+ userRole: number;
3451
+ joinTime: number;
3452
+ /**
3453
+ * signal 数据中心
3454
+ * */
3455
+ signalDataCenter: string;
3456
+ }
3457
+ /**
3458
+ * http3 北极星上报 R1 数据
3459
+ */
3460
+ interface IR1Info {
3461
+ /**
3462
+ * 用户加入房间的时间
3463
+ */
3464
+ joinTime: number;
3465
+ /**
3466
+ * RTC 版本号
3467
+ */
3468
+ rtcVersion: string;
3469
+ /**
3470
+ * IM SDK 版本
3471
+ */
3472
+ imVersion: string;
3473
+ /**
3474
+ * 平台(如:Android、iOS、Web)
3475
+ */
3476
+ platform: string;
3477
+ /**
3478
+ * 设备信息(手机名称+型号)
3479
+ */
3480
+ device: string;
3481
+ /**
3482
+ * 系统版本(手机系统版本)
3483
+ */
3484
+ os: string;
3485
+ /**
3486
+ * 浏览器名称, 没有用 -1 表示
3487
+ */
3488
+ browserName?: string;
3489
+ /**
3490
+ * 浏览器版本, 没有用 -1 表示
3491
+ */
3492
+ browserVersion?: string;
3493
+ }
3494
+ /**
3495
+ * http3 北极星上报 R2 数据
3496
+ */
3497
+ interface IR2Info {
3498
+ /**
3499
+ * 用户加入房间的时间
3500
+ */
3501
+ joinTime: number;
3502
+ /**
3503
+ * 客户端 发布/取消发布 订阅/取消订阅 资源的时间
3504
+ */
3505
+ sendTime: number;
3506
+ /**
3507
+ * 发布类型 subscribe : 订阅 publish : 发布
3508
+ */
3509
+ rtcActionType: string;
3510
+ /**
3511
+ * 发布状态 begin : 开始 tend : 结束
3512
+ */
3513
+ rtcActionStatus: string;
3514
+ trackId: string[];
3515
+ }
3516
+ /**
3517
+ * http3 北极星上报 R3 数据
3518
+ */
3519
+ interface IR3R4Info {
3520
+ info: IR3R4CommonInfo;
3521
+ }
3522
+ interface IR3R4CommonInfo {
3523
+ /**
3524
+ * 用户加入房间的时间
3525
+ */
3526
+ joinTime?: number;
3527
+ /**
3528
+ * 用户发布数据流的时间(毫秒),暂时由客户端生成,后期如果有问题服务端做兜底处理
3529
+ */
3530
+ receiveTime?: number;
3531
+ /**
3532
+ * 总码率
3533
+ */
3534
+ totalBitRate?: number;
3535
+ /**
3536
+ * APP CPU占用率
3537
+ */
3538
+ appCPUUsage?: number;
3539
+ /**
3540
+ * 系统 CPU占用率
3541
+ */
3542
+ systemCPUUsage?: number;
3543
+ /**
3544
+ * 系统CPU频率 (安卓8.0以上)
3545
+ */
3546
+ systemCPUFrequency?: number;
3547
+ /**
3548
+ * 实时网络状态(2g、3g、4g、wifi)
3549
+ */
3550
+ networkStatus?: string;
3551
+ /**
3552
+ * Goog rtt 网络延迟
3553
+ */
3554
+ googleRTTNetwork?: number;
3555
+ /**
3556
+ * ip地址
3557
+ */
3558
+ ipAddress?: string;
3559
+ /**
3560
+ * 可接收带宽(单位: bit)
3561
+ */
3562
+ useReceiveBroadBand?: string;
3563
+ /**
3564
+ * 可用发送带宽(单位: bit)
3565
+ */
3566
+ useSendBroadBand?: string;
3567
+ /**
3568
+ * 丢包数
3569
+ */
3570
+ packetLossCount?: string;
3571
+ streams?: IR3R4StreamInfo[];
3572
+ }
3573
+ /**
3574
+ * http3 北极星上报 R3、R4 streamInfo 数据
3575
+ */
3576
+ interface IR3R4StreamInfo {
3577
+ trackId: string;
3578
+ /**
3579
+ * 编解码名称
3580
+ */
3581
+ codeName?: string;
3582
+ /**
3583
+ * 音频播放音量
3584
+ */
3585
+ volume?: string;
3586
+ /**
3587
+ * 音频采样率
3588
+ */
3589
+ samplingRate: number;
3590
+ /**
3591
+ * 下行码率
3592
+ */
3593
+ bitRate?: number;
3594
+ packetLossRate?: number;
3595
+ /**
3596
+ * 视频接收帧率(单位:fps)
3597
+ */
3598
+ frameRate?: number;
3599
+ /**
3600
+ * 视频分辨率(格式:640*480)
3601
+ */
3602
+ resolution?: string;
3603
+ /**
3604
+ * 接收卡顿(间隔时间, 单位: ms)
3605
+ */
3606
+ blockTime?: number;
3607
+ /**
3608
+ * jitter数据抖动
3609
+ */
3610
+ jitterData?: number;
3611
+ /**
3612
+ * nack数量
3613
+ */
3614
+ nAckCount?: string;
3615
+ /**
3616
+ * PLI请求数
3617
+ */
3618
+ pliCount?: string;
3619
+ /**
3620
+ * googRtt往返时长
3621
+ */
3622
+ googleRTTTotalTime?: number;
3623
+ /**
3624
+ * 第一个关键帧是否正常收到
3625
+ */
3626
+ isReceiveFirstFrameRate?: number;
3627
+ /**
3628
+ * 编码方式
3629
+ */
3630
+ codeType?: string;
3631
+ /**
3632
+ * 当前流的状态是否可用
3633
+ */
3634
+ isEnabled?: number;
3635
+ }
3636
+ /**
3637
+ * http3 北极星上报总数据
3638
+ */
3639
+ interface IRCRTCReportData extends IRCRTCReportBaseData {
3640
+ r1Info?: IR1Info;
3641
+ r2Info?: IR2Info;
3642
+ r3Info?: IR3R4Info;
3643
+ r4Info?: IR3R4Info;
3644
+ }
3241
3645
  interface IRCRTCReportListener {
3242
3646
  /**
3243
3647
  * RTCPeerConnection 的详细状态数据
@@ -3341,6 +3745,11 @@ interface IRoomEventListener extends IRCRTCTrackEventListener {
3341
3745
  * @param failedList 订阅失败的列表
3342
3746
  */
3343
3747
  onTaskCompleted?(code: RCRTCCode, subscribe: ISubscribeAttr[], unsubscribe: ISubscribeAttr[], failedList: ISubscribeAttr[]): void;
3748
+ /**
3749
+ * 当房间内资源(音频视频)异常时给出处理
3750
+ *
3751
+ */
3752
+ onTrackTrouble?(tracks: RCLocalTrack[]): void;
3344
3753
  }
3345
3754
  /**
3346
3755
  * RTCClient 初始化配置
@@ -3357,16 +3766,16 @@ interface IRCRTCInitOptions {
3357
3766
  /**
3358
3767
  * 输出日志等级,生产环境默认使用 WARN,开发环境默认为 DEBUG
3359
3768
  * @description
3360
- * * 0 - DEBUG
3361
- * * 1 - INFO
3769
+ * * 4 - DEBUG
3770
+ * * 3 - INFO
3362
3771
  * * 2 - WARN
3363
- * * 3 - ERROR
3772
+ * * 1 - ERROR
3364
3773
  */
3365
- logLevel?: LogLevel;
3774
+ logLevel?: EnableLogL;
3366
3775
  /**
3367
3776
  * 修改默认的 log 输出函数
3368
3777
  */
3369
- logStdout?: (logLevel: LogLevel, content: string) => void;
3778
+ logStdout?: (logLevel: EnableLogL, content: string) => void;
3370
3779
  /**
3371
3780
  * 与 MediaServer 的 http 请求超时时间,单位为毫秒,默认值为 `5000`,有效值 `5000-30000`。
3372
3781
  * 优先级:用户配置 > 导航配置 > 默认时间。
@@ -3388,6 +3797,7 @@ interface IRCRTCInitOptions {
3388
3797
  * 观众拉内置 CDN 资源时是否使用 https,默认为 RCInnerCDNPullIsHttps.HTTPS
3389
3798
  */
3390
3799
  pullInnerCDNUseHttps?: RCInnerCDNPullIsHttps;
3800
+ signalRetryTime?: number;
3391
3801
  /**
3392
3802
  * 音频降噪处理
3393
3803
  * - workletModule 默认值为 https://cdn.ronghub.com/plugin-rtc/wasm/5.0.0-alpha.1/process-worklet.js
@@ -3547,6 +3957,79 @@ interface IChrmKVPullData {
3547
3957
  isFullUpdate?: boolean;
3548
3958
  syncTime?: number;
3549
3959
  }
3960
+ /**
3961
+ * 通知拉取到的房间数据
3962
+ */
3963
+ interface IPullRTCRoomStatus {
3964
+ /**
3965
+ * 是否是全量数据
3966
+ */
3967
+ bFullStatus: boolean;
3968
+ /**
3969
+ * 当前房间的最大版本号
3970
+ */
3971
+ version: number;
3972
+ /**
3973
+ * 如果是全量数据,usersData 不为空,给的是房间全部的人以及发布的资源
3974
+ */
3975
+ usersData: IPullRTCRoomUsersData[];
3976
+ /**
3977
+ * 房间增量数据
3978
+ */
3979
+ roomStatus: IRoomStatus[];
3980
+ }
3981
+ /**
3982
+ * 通知拉取到的房间增量数据
3983
+ */
3984
+ interface IRoomStatus {
3985
+ /**
3986
+ * 用户 id
3987
+ */
3988
+ userId: string;
3989
+ /**
3990
+ * 本次变更的动作类型
3991
+ */
3992
+ event: PullRoomStatusEvent;
3993
+ /**
3994
+ * 本次变更的版本号
3995
+ */
3996
+ time: number;
3997
+ /**
3998
+ * 用户变更的资源,event 为人员加入或资源变动时有值
3999
+ * key 包含 uris、cdn_uris、mcu_uris
4000
+ * value 为字符串数组
4001
+ */
4002
+ userData: {
4003
+ key: string;
4004
+ value: string;
4005
+ }[];
4006
+ /**
4007
+ * 切换角色,0 代表非切换身份发生的加入、退出房间行为
4008
+ */
4009
+ switchRoleType: RCRTCLiveRole | 0;
4010
+ /**
4011
+ * 额外的信息
4012
+ */
4013
+ extra: string;
4014
+ }
4015
+ /**
4016
+ * 通知拉取到的房间全量数据
4017
+ */
4018
+ interface IPullRTCRoomUsersData {
4019
+ /**
4020
+ * 用户 id
4021
+ */
4022
+ userId: string;
4023
+ /**
4024
+ * 房间内所有资源数据
4025
+ * key 包含 uris、cdn_uris、mcu_uris
4026
+ * value 为字符串数组
4027
+ */
4028
+ userData: {
4029
+ key: string;
4030
+ value: string;
4031
+ }[];
4032
+ }
3550
4033
 
3551
4034
  /**
3552
4035
  * 自定义合流布局时,背景图片填充方式
@@ -4082,7 +4565,7 @@ declare class RCMediaStreamCapture {
4082
4565
  declare class RCRTCClient extends RCMediaStreamCapture {
4083
4566
  protected readonly _context: RTCContext;
4084
4567
  private readonly _runtime;
4085
- private readonly _options;
4568
+ private _options;
4086
4569
  private readonly _service;
4087
4570
  constructor(_context: RTCContext, _runtime: IRuntime, _options: IRCRTCInitOptions);
4088
4571
  private _handleMessage;
@@ -4101,14 +4584,15 @@ declare class RCRTCClient extends RCMediaStreamCapture {
4101
4584
  getCurrentId(): string;
4102
4585
  private _crtRoom;
4103
4586
  /**
4104
- * 加入普通音视频房间
4105
- * @param roomId
4106
- * @param joinType 多端处理方式
4107
- * @param outerUserDatas 业务层设置人员属性
4108
- * @param useMutilPeerC 是否使用多 peerConnection 发布资源
4109
- * @param roomType 加入房间的类型 默认参数 RTCMode.RTC
4587
+ * > 加入普通音视频房间,返回房间对象、code、userIds、tracks
4588
+ * @param {string} roomId - 房间号
4589
+ * @param {RTCJoinType} [joinType] - 要加入的房间类型。
4590
+ * @param {IRTCUserData} [outerUserDatas] - 加入房间的用户的用户数据。
4591
+ * @param {boolean} [useMutilPeerC] - 是否使用多点连接,默认为false,即使用单点连接。
4592
+ * @param {RTCMode} roomType - RTCMode = RTCMode.RTC,
4593
+ * @param {number} signalRetryTime - 重新连接信令服务器的时间间隔。
4110
4594
  */
4111
- joinRTCRoom(roomId: string, joinType?: RTCJoinType, outerUserDatas?: IRTCUserData, useMutilPeerC?: boolean, roomType?: RTCMode): Promise<{
4595
+ joinRTCRoom(roomId: string, joinType?: RTCJoinType, outerUserDatas?: IRTCUserData, useMutilPeerC?: boolean, roomType?: RTCMode, signalRetryTime?: number): Promise<{
4112
4596
  room?: RCRTCRoom;
4113
4597
  code: RCRTCCode;
4114
4598
  userIds?: string[];
@@ -4206,6 +4690,7 @@ declare class RCRTCClient extends RCMediaStreamCapture {
4206
4690
  code: RCRTCCode | ErrorCode;
4207
4691
  data?: IRTCJoinedInfo[];
4208
4692
  }>;
4693
+ reportSDKInfo(): void;
4209
4694
  }
4210
4695
 
4211
4696
  /**