@rongcloud/plugin-rtc 5.3.2-alpha.1 → 5.3.4
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 +14 -6
- package/dist/index.esm.js +15 -13475
- package/dist/index.js +15 -13505
- package/dist/index.umd.js +15 -13509
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* RCRTC - v5.3.
|
|
3
|
-
* CommitId -
|
|
4
|
-
*
|
|
2
|
+
* RCRTC - v5.3.4
|
|
3
|
+
* CommitId - a0331c6614c5526fb301c3497945278cf0ecc69d
|
|
4
|
+
* Wed Apr 06 2022 15:51:02 GMT+0800 (China Standard Time)
|
|
5
5
|
* ©2020 RongCloud, Inc. All rights reserved.
|
|
6
6
|
*/
|
|
7
|
-
import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IReceivedMessage, ErrorCode, IJoinRTCRoomData, KVString, RTCJoinType, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
7
|
+
import { EventEmitter, LogLevel, RTCMode, IRuntime, RTCPluginContext, IServerRTCRoomEntry, IReceivedMessage, ErrorCode, IJoinRTCRoomData, KVString, RTCJoinType, IRTCUserData, IRTCJoinedInfo, IPluginGenerator } from '@rongcloud/engine';
|
|
8
8
|
export { RTCJoinType } from '@rongcloud/engine';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -2932,6 +2932,10 @@ declare class RCLivingRoom extends RCAbstractRoom {
|
|
|
2932
2932
|
* 退出所有连麦房间
|
|
2933
2933
|
*/
|
|
2934
2934
|
protected _quitAllPKRoom(): void;
|
|
2935
|
+
/**
|
|
2936
|
+
* 是否是主房间
|
|
2937
|
+
*/
|
|
2938
|
+
isMainRoom(): boolean;
|
|
2935
2939
|
}
|
|
2936
2940
|
|
|
2937
2941
|
/**
|
|
@@ -3032,8 +3036,10 @@ declare class RCRTCClient {
|
|
|
3032
3036
|
/**
|
|
3033
3037
|
* 加入普通音视频房间
|
|
3034
3038
|
* @param roomId
|
|
3039
|
+
* @param joinType 多端处理方式
|
|
3040
|
+
* @param outerUserDatas 业务层设置人员属性
|
|
3035
3041
|
*/
|
|
3036
|
-
joinRTCRoom(roomId: string, joinType?: RTCJoinType): Promise<{
|
|
3042
|
+
joinRTCRoom(roomId: string, joinType?: RTCJoinType, outerUserDatas?: IRTCUserData): Promise<{
|
|
3037
3043
|
room?: RCRTCRoom;
|
|
3038
3044
|
code: RCRTCCode;
|
|
3039
3045
|
userIds?: string[];
|
|
@@ -3044,8 +3050,10 @@ declare class RCRTCClient {
|
|
|
3044
3050
|
* 主播加入直播房间或观众上麦场景调用,观众上麦之前需先取消已订阅的直播间资源
|
|
3045
3051
|
* @param roomId 房间 Id
|
|
3046
3052
|
* @param livingType 直播间类型,`RCLivingType.AUDIO` 为音频直播,`RCLivingType.VIDEO` 为音视频直播
|
|
3053
|
+
* @param joinType 多端处理方式
|
|
3054
|
+
* @param outerUserDatas 业务层设置人员属性
|
|
3047
3055
|
*/
|
|
3048
|
-
joinLivingRoom(roomId: string, livingType: RCLivingType): Promise<{
|
|
3056
|
+
joinLivingRoom(roomId: string, livingType: RCLivingType, joinType?: RTCJoinType, outerUserDatas?: IRTCUserData): Promise<{
|
|
3049
3057
|
room?: RCLivingRoom;
|
|
3050
3058
|
code: RCRTCCode;
|
|
3051
3059
|
userIds?: string[];
|