@rongcloud/plugin-rtc 5.2.4-beem.1 → 5.2.4-beem.10

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,7 +1,7 @@
1
1
  /*
2
- * RCRTC - v5.2.4-beem.1
3
- * CommitId - d026964c6715be7805a3e5c8addd64d4008d17bd
4
- * Thu May 12 2022 18:57:27 GMT+0800 (China Standard Time)
2
+ * RCRTC - v5.2.4-beem.10
3
+ * CommitId - 6db922c5bab0ba43c929ae0deae91711d5ce1406
4
+ * Mon Jun 06 2022 15:29:07 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IJoinRTCRoomData, IReceivedMessage, KVString, RTCJoinType, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
@@ -1941,7 +1941,7 @@ declare class PolarisReporter {
1941
1941
  * @param resourceId userId_11_1_tiny 改为 userId_11_tiny_video
1942
1942
  */
1943
1943
  private _getPolarisTrackId;
1944
- sendR3R4Data(data: IInnerRCRTCStateReport): void;
1944
+ sendR3R4Data(data: IInnerRCRTCStateReport): Promise<boolean>;
1945
1945
  /**
1946
1946
  * 加入房间
1947
1947
  */
@@ -1972,6 +1972,7 @@ declare class RCRTCPeerConnection extends EventEmitter {
1972
1972
  private pubLocalTracks;
1973
1973
  private _reTryExchangeTimer;
1974
1974
  private _reportStatsTimer;
1975
+ private _reportR3R4ToPolarisTimer;
1975
1976
  constructor(
1976
1977
  /**
1977
1978
  * _reTryExchange 方法
@@ -2022,6 +2023,14 @@ declare class RCRTCPeerConnection extends EventEmitter {
2022
2023
  * @todo
2023
2024
  */
2024
2025
  private _reportHandle;
2026
+ /**
2027
+ * 北极星上报 R3、R4 数据
2028
+ */
2029
+ private _sendR3R4Data;
2030
+ /**
2031
+ * 2s 给北极星上报一次 R3、R4
2032
+ */
2033
+ __reportR3R4ToPolaris(): Promise<void>;
2025
2034
  getRTCPeerConn(): RTCPeerConnection;
2026
2035
  destroy(): void;
2027
2036
  clearReTryExchangeTimer(): void;
@@ -2226,6 +2235,11 @@ declare abstract class RCAbstractRoom {
2226
2235
  * 退出并销毁当前房间实例,退出后该房间的所有方法将不可用
2227
2236
  */
2228
2237
  __destroy(quitRoom: boolean): Promise<void>;
2238
+ /**
2239
+ * 退出房间之前禁用所有远端资源,避免退出动作耗时过长,
2240
+ * 导致在未完全退出的过程中仍能听到房间内的声音问题
2241
+ */
2242
+ private _muteRemoteTracksBeforeQuit;
2229
2243
  private _leaveHandle;
2230
2244
  private _onLocalTrackDestroied;
2231
2245
  /**