@byteplus/rtc 4.51.0 → 4.51.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/extension-ainr/index.d.ts +14 -2
- package/extension-ainr/index.js +1 -1
- package/extension-ainr/index.umd.js +1 -1
- package/extension-beauty/index.js +1 -1
- package/extension-beauty/index.umd.js +1 -1
- package/index.d.ts +10 -12
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -2621,6 +2621,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
|
|
|
2621
2621
|
* @region Room Management
|
|
2622
2622
|
*/
|
|
2623
2623
|
joinRoom: (token: string | null, roomId: string, userInfo: UserInfo, roomConfig?: RoomConfig) => Promise<void>;
|
|
2624
|
+
setConnectionMode: (mode: ConnectionMode) => void;
|
|
2624
2625
|
|
|
2625
2626
|
/**
|
|
2626
2627
|
* @brief Leave the room.
|
|
@@ -4884,6 +4885,11 @@ export interface SubtitleMessage {
|
|
|
4884
4885
|
*/
|
|
4885
4886
|
sequence: number;
|
|
4886
4887
|
}
|
|
4888
|
+
export declare enum ConnectionMode {
|
|
4889
|
+
AUTO = "auto",
|
|
4890
|
+
FORCE_TCP = "forceTCP",
|
|
4891
|
+
FORCE_UDP = "forceUDP"
|
|
4892
|
+
}
|
|
4887
4893
|
|
|
4888
4894
|
/**
|
|
4889
4895
|
* @brief Point-to-point text message
|
|
@@ -4967,19 +4973,10 @@ export interface CloudProxyConnectedEvent {
|
|
|
4967
4973
|
interval: number;
|
|
4968
4974
|
}
|
|
4969
4975
|
declare const Config: {
|
|
4970
|
-
|
|
4971
|
-
ICE_CONFIG_REQUEST_URLS_INTERNAL: string[];
|
|
4972
|
-
ICE_CONFIG_REQUEST_URLS: never[];
|
|
4973
|
-
EXPECTED_ADDR: string;
|
|
4974
|
-
LOG_SERVER_URL: string;
|
|
4975
|
-
CONFIG_REQUEST_DOMAINS: string[];
|
|
4976
|
-
DEVICE_ID: string;
|
|
4977
|
-
OVERSEA: boolean;
|
|
4978
|
-
PLATFORM: string;
|
|
4979
|
-
PRODUCT: string;
|
|
4976
|
+
[key: string]: any;
|
|
4980
4977
|
};
|
|
4981
4978
|
declare function setParameter(key: keyof typeof Config, value: any): void;
|
|
4982
|
-
declare function getParameter(key: keyof typeof Config):
|
|
4979
|
+
declare function getParameter(key: keyof typeof Config): any;
|
|
4983
4980
|
|
|
4984
4981
|
/**
|
|
4985
4982
|
* @id BytePlusRTC
|
|
@@ -5118,7 +5115,7 @@ export interface IVERTC {
|
|
|
5118
5115
|
downloadLog: (key?: string) => void;
|
|
5119
5116
|
}
|
|
5120
5117
|
declare class VERTC implements IVERTC {
|
|
5121
|
-
getSdkVersion: () =>
|
|
5118
|
+
getSdkVersion: () => any;
|
|
5122
5119
|
createEngine: (appId: string, config?: EngineConfig | undefined) => IRTCEngine;
|
|
5123
5120
|
destroyEngine: (engine: IRTCEngine) => void;
|
|
5124
5121
|
enumerateDevices: () => Promise<MediaDeviceInfo[]>;
|
|
@@ -5136,6 +5133,7 @@ declare class VERTC implements IVERTC {
|
|
|
5136
5133
|
setParameter: typeof setParameter;
|
|
5137
5134
|
isSupported: () => Promise<boolean>;
|
|
5138
5135
|
getSupportedCodecs: () => Promise<string[]>;
|
|
5136
|
+
ConnectionMode: typeof ConnectionMode;
|
|
5139
5137
|
events: typeof EngineEventsTypes;
|
|
5140
5138
|
ErrorCode: typeof ErrorCode;
|
|
5141
5139
|
platform: string;
|