@rongcloud/plugin-rtc 5.6.15 → 5.6.16-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.
- package/dist/index.d.ts +27 -5
- package/dist/index.esm.js +17037 -9237
- package/dist/index.umd.js +21684 -143
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1144,9 +1144,21 @@ declare enum RCKickReason {
|
|
|
1144
1144
|
*/
|
|
1145
1145
|
SERVER_KICK = 1,
|
|
1146
1146
|
/**
|
|
1147
|
-
*
|
|
1147
|
+
* 其他设备加入房间后,本端被踢
|
|
1148
1148
|
*/
|
|
1149
|
-
OTHER_KICK = 2
|
|
1149
|
+
OTHER_KICK = 2,
|
|
1150
|
+
/**
|
|
1151
|
+
* im 断开连接
|
|
1152
|
+
*/
|
|
1153
|
+
IM_DISCONNECTED = 3,
|
|
1154
|
+
/**
|
|
1155
|
+
* im 退出登录
|
|
1156
|
+
*/
|
|
1157
|
+
IM_LOGOUT = 4,
|
|
1158
|
+
/**
|
|
1159
|
+
* 用户在其他设备连接 im,被挤下线
|
|
1160
|
+
*/
|
|
1161
|
+
OTHER_CLIENT_IM_CONNECTED = 5
|
|
1150
1162
|
}
|
|
1151
1163
|
|
|
1152
1164
|
declare enum RCRTCPingResult {
|
|
@@ -1945,6 +1957,16 @@ interface IAudioLevelChangeHandler {
|
|
|
1945
1957
|
declare type RoomData = {
|
|
1946
1958
|
[userId: string]: IPublishedResource[];
|
|
1947
1959
|
};
|
|
1960
|
+
/**
|
|
1961
|
+
* RCRTCMessageType.KICK content
|
|
1962
|
+
*/
|
|
1963
|
+
interface IRCRTCKickContent {
|
|
1964
|
+
users: {
|
|
1965
|
+
userId: string;
|
|
1966
|
+
type: RCKickReason;
|
|
1967
|
+
kickExtra?: any;
|
|
1968
|
+
}[];
|
|
1969
|
+
}
|
|
1948
1970
|
interface IPKInfo {
|
|
1949
1971
|
[roomId: string]: {
|
|
1950
1972
|
inviteSessionId: string;
|
|
@@ -2558,7 +2580,7 @@ declare class RTCContext {
|
|
|
2558
2580
|
}> | Promise<IAsyncRes<any>>;
|
|
2559
2581
|
sendMessage(conversationType: ConversationType, targetId: string, options: ISendMsgOptions): IPromiseResult<IReceivedMessage>;
|
|
2560
2582
|
registerRTCSignalListener(listener?: ((buffer: Uint8Array) => void) | undefined): void;
|
|
2561
|
-
registerConnectionStateChangeListener(listener: (status: RCConnectionStatus) => void): void;
|
|
2583
|
+
registerConnectionStateChangeListener(listener: (status: RCConnectionStatus, code: ErrorCode) => void): void;
|
|
2562
2584
|
registerDisconnectListener(listener: () => void): void;
|
|
2563
2585
|
registerDestroyListener(listener: () => void): void;
|
|
2564
2586
|
registerMessageListener(listener: (message: IReceivedMessage) => boolean): void;
|
|
@@ -3874,7 +3896,7 @@ declare abstract class RCAbstractRoom extends EventEmitter {
|
|
|
3874
3896
|
* * 当值为 false 时,说明本端 rtcPing 超时
|
|
3875
3897
|
* * 当值为 true 时,说明本端收到被踢出房间通知
|
|
3876
3898
|
*/
|
|
3877
|
-
|
|
3899
|
+
__kickoff(byServer: boolean, content?: IRCRTCKickContent): Promise<void>;
|
|
3878
3900
|
private _rtcpeerClosed;
|
|
3879
3901
|
/**
|
|
3880
3902
|
* 处理资源变更事件
|
|
@@ -4655,7 +4677,7 @@ declare class RCMediaStreamCapture {
|
|
|
4655
4677
|
* @param {ICreateLocalTrackOptions} [options] - ICreateLocalTrackOptions
|
|
4656
4678
|
* @returns 一组 MediaStreamTrack 对象。
|
|
4657
4679
|
*/
|
|
4658
|
-
static getTracksWithOptions
|
|
4680
|
+
private static getTracksWithOptions;
|
|
4659
4681
|
}
|
|
4660
4682
|
|
|
4661
4683
|
/**
|