@rongcloud/plugin-call 5.0.4 → 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 +19 -6
- package/dist/index.esm.js +1688 -15
- package/dist/index.js +1717 -15
- package/dist/index.umd.js +1719 -15
- package/package.json +8 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCCall - v5.0.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
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
|
|
@@ -535,9 +547,10 @@ declare class RCCallClient {
|
|
|
535
547
|
*/
|
|
536
548
|
private _removeSession;
|
|
537
549
|
/**
|
|
538
|
-
*
|
|
550
|
+
* 获取加入通话(已加入 RTC 房间)的用户信息
|
|
551
|
+
* @param userId 用户 ID
|
|
539
552
|
*/
|
|
540
|
-
|
|
553
|
+
getJoinedUserInfo(userId: string): Promise<{
|
|
541
554
|
code: RCCallErrorCode;
|
|
542
555
|
data?: IRTCJoinedInfo[];
|
|
543
556
|
}>;
|