@rongcloud/plugin-call 5.0.1 → 5.0.5-alpha.1

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,13 +1,13 @@
1
1
  /*
2
- * RCCall - v5.0.1
3
- * CommitId - 1fb697b135955250147929bfb30e282ee9fba11b
4
- * Fri Oct 22 2021 16:38:56 GMT+0800 (China Standard Time)
2
+ * RCCall - v5.0.5-alpha.1
3
+ * CommitId - 92132946bea607c42e2d1fe5fe641bed05997834
4
+ * Mon Dec 06 2021 16:29:43 GMT+0800 (China Standard Time)
5
5
  * ©2020 RongCloud, Inc. All rights reserved.
6
6
  */
7
7
  import { ConversationType, RTCJoinType, LogLevel, PluginContext, IRuntime, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
8
8
  import { RCCallStateMachine, RCCallErrorCode, RCCallMediaType, IUserData, RCCallUserState, RCCallSessionState, IEndSummary, IOfflineRecord, RCCallLanguage, RCCallEndReason, IInvitedUsers } from '@rongcloud/plugin-call-engine';
9
9
  export { IEndSummary, IInvitedUsers, IOfflineRecord, ISenderInfo, RCCallEndReason, RCCallErrorCode, RCCallLanguage, RCCallMediaType, RCCallSessionState, RCCallUserState } from '@rongcloud/plugin-call-engine';
10
- import { RCRTCClient, IMicphoneAudioProfile, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
10
+ import { RCRTCClient, IMicphoneAudioProfile, RCRTCRoom, RCTrack, RCRTCCode, IRCRTCStateReport, RCRTCPingResult, RCLocalTrack, ICameraVideoProfile } from '@rongcloud/plugin-rtc';
11
11
 
12
12
  /**
13
13
  * 产生session的场景
@@ -238,6 +238,10 @@ declare class RCCallSession {
238
238
  * 获得mediaType
239
239
  */
240
240
  getMediaType(): RCCallMediaType;
241
+ /**
242
+ * 获取 RTC Room 实例
243
+ */
244
+ getRTCRoomInstance(): RCRTCRoom | null;
241
245
  }
242
246
 
243
247
  interface ISender {
@@ -378,6 +382,14 @@ interface ISessionListener {
378
382
  * @since version 5.1.5
379
383
  */
380
384
  onICEConnectionStateChange?: (state: RTCIceConnectionState, session: RCCallSession) => void;
385
+ /**
386
+ * 接收到房间信令时回调
387
+ */
388
+ onMessageReceive?: (name: string, content: any, senderUserId: string, messageUId: string, session: RCCallSession) => void;
389
+ /**
390
+ * 监听房间属性变更通知
391
+ */
392
+ onRoomAttributeChange?: (name: string, content: string, session: RCCallSession) => void;
381
393
  }
382
394
  /**
383
395
  * 创建session的options