@byteplus/rtc 4.52.3 → 4.52.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/index.d.ts +10 -7
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -303,11 +303,6 @@ declare enum ErrorCode {
|
|
|
303
303
|
*/
|
|
304
304
|
INVALID_TOKEN = "INVALID_TOKEN",
|
|
305
305
|
|
|
306
|
-
/**
|
|
307
|
-
* @brief Token expired.
|
|
308
|
-
*/
|
|
309
|
-
EXPIRED_TOKEN = "EXPIRED_TOKEN",
|
|
310
|
-
|
|
311
306
|
/**
|
|
312
307
|
* @brief Failure of joining room
|
|
313
308
|
*/
|
|
@@ -694,7 +689,9 @@ declare enum ErrorCode {
|
|
|
694
689
|
/**
|
|
695
690
|
* @brief The client side failed to identity error codes sent by cloud media processing. Please contact the technical support.
|
|
696
691
|
*/
|
|
697
|
-
SUBTITLE_ERR_UNKNOWN = "SUBTITLE_ERR_UNKNOWN"
|
|
692
|
+
SUBTITLE_ERR_UNKNOWN = "SUBTITLE_ERR_UNKNOWN",
|
|
693
|
+
ROOM_FORBIDDEN = "ROOM_FORBIDDEN",
|
|
694
|
+
USER_FORBIDDEN = "USER_FORBIDDEN"
|
|
698
695
|
}
|
|
699
696
|
declare enum AudioMixingError {
|
|
700
697
|
|
|
@@ -2354,7 +2351,11 @@ export interface IEngineEvents {
|
|
|
2354
2351
|
/**
|
|
2355
2352
|
* @brief The reason why the current user has been removed from the room.
|
|
2356
2353
|
*/
|
|
2357
|
-
errorCode: ErrorCode.DUPLICATE_LOGIN | ErrorCode.RTM_DUPLICATE_LOGIN | ErrorCode.RTM_TOKEN_ERROR | ErrorCode.
|
|
2354
|
+
errorCode: ErrorCode.DUPLICATE_LOGIN | ErrorCode.RTM_DUPLICATE_LOGIN | ErrorCode.RTM_TOKEN_ERROR | ErrorCode.TOKEN_EXPIRED | ErrorCode.RECONNECT_FAILED | ErrorCode.KICKED_OUT | ErrorCode.ROOM_DISMISS;
|
|
2355
|
+
/**
|
|
2356
|
+
* TODO: note missing 1. 可选参数 2. 房间封禁时长
|
|
2357
|
+
*/
|
|
2358
|
+
forbiddenTime?: number;
|
|
2358
2359
|
}) => void;
|
|
2359
2360
|
|
|
2360
2361
|
/**
|
|
@@ -4887,6 +4888,8 @@ export interface SubtitleMessage {
|
|
|
4887
4888
|
* @brief Incremental sequence numbers assigned to transcribed or translated texts of the speaker's speech. Complete and incomplete sentences are numbered individually.
|
|
4888
4889
|
*/
|
|
4889
4890
|
sequence: number;
|
|
4891
|
+
language: string;
|
|
4892
|
+
mode: SUBTITLE_MODE;
|
|
4890
4893
|
}
|
|
4891
4894
|
/**
|
|
4892
4895
|
* @brief Cloud proxy informatio
|