@byteplus/rtc 4.66.36-beta.0 → 4.66.37
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.js +2 -2
- package/extension-ainr/index.umd.js +2 -2
- package/extension-beauty/index.js +2 -2
- package/extension-beauty/index.umd.js +2 -2
- package/index.d.ts +1 -48
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +2 -5
- package/extension-sr/index.d.ts +0 -81
- package/extension-sr/index.js +0 -10
- package/extension-sr/index.umd.js +0 -6
package/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ declare class VERTC implements IVERTC {
|
|
|
28
28
|
setParameter: typeof setParameter;
|
|
29
29
|
isSupported: () => Promise<boolean>;
|
|
30
30
|
getSupportedCodecs: () => Promise<string[]>;
|
|
31
|
-
getSupportedDetails: () => Promise<SupportedCodecsInfo>;
|
|
32
31
|
getElectronScreenSources: typeof getElectronScreenSources;
|
|
33
32
|
events: typeof EngineEventsTypes;
|
|
34
33
|
ErrorCode: typeof ErrorCode;
|
|
@@ -934,11 +933,6 @@ declare enum StreamMixingEventType {
|
|
|
934
933
|
declare function getElectronScreenSources(type?: ScreenSourceType): Promise<ElectronDesktopCapturerSource[]>;
|
|
935
934
|
declare function getParameter(key: keyof typeof Config): {} | undefined;
|
|
936
935
|
declare function setParameter<T extends SetParamKey>(key: T, value: (SetParamInterface & CoreSetParamterInterface)[T]): IJoinRoomConfig | undefined;
|
|
937
|
-
export declare const enum IsSupportedCheckCompatibilityLevel {
|
|
938
|
-
none = 0,
|
|
939
|
-
absolute = 1,
|
|
940
|
-
flexible = 2
|
|
941
|
-
}
|
|
942
936
|
|
|
943
937
|
/**
|
|
944
938
|
* @brief Advanced Audio Coding (AAC) profile.
|
|
@@ -2238,21 +2232,6 @@ export declare interface ElectronDesktopCapturerSource {
|
|
|
2238
2232
|
*/
|
|
2239
2233
|
thumbnail: IElectronNativeImage;
|
|
2240
2234
|
}
|
|
2241
|
-
export declare interface SupportedCodecsConditionOptions {
|
|
2242
|
-
codec: "H264" | "H265" | "VP8" | "OPUS";
|
|
2243
|
-
scenario: "videoEncode" | "videoDecode" | "audioEncode" | "audioDecode" | "hardwareEncode" | "hardwareDecode";
|
|
2244
|
-
value: true | false;
|
|
2245
|
-
conditions: CompabilityCondition[];
|
|
2246
|
-
}
|
|
2247
|
-
export declare interface SupportedCodecsInfo {
|
|
2248
|
-
videoEncode: string[];
|
|
2249
|
-
videoDecode: string[];
|
|
2250
|
-
audioEncode: string[];
|
|
2251
|
-
audioDecode: string[];
|
|
2252
|
-
preferToUseHardwareEncodeForH264: boolean;
|
|
2253
|
-
preferToUseHardwareDecodeForH264: boolean;
|
|
2254
|
-
conditionOptions: SupportedCodecsConditionOptions[];
|
|
2255
|
-
}
|
|
2256
2235
|
export declare type RTCExtension = any;
|
|
2257
2236
|
|
|
2258
2237
|
/**
|
|
@@ -2470,9 +2449,6 @@ export interface CloudProxyInfo {
|
|
|
2470
2449
|
*/
|
|
2471
2450
|
configProxy: string;
|
|
2472
2451
|
}
|
|
2473
|
-
export interface CompabilityCondition {
|
|
2474
|
-
resolution?: "90p" | "180p" | "360p" | "480p" | "540p" | "720p" | "960p" | "1080p";
|
|
2475
|
-
}
|
|
2476
2452
|
|
|
2477
2453
|
/**
|
|
2478
2454
|
* @brief The connection state changes.
|
|
@@ -4006,17 +3982,6 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
|
|
|
4006
3982
|
*/
|
|
4007
3983
|
setRemoteVideoPlayer: (streamIndex: StreamIndex, videoPlayerOption: VideoPlayerOption) => HTMLVideoElement | undefined;
|
|
4008
3984
|
|
|
4009
|
-
/**
|
|
4010
|
-
* @brief Enable super resolution for the remote video stream.
|
|
4011
|
-
* @param streamIndex Main stream or screen-sharing stream.
|
|
4012
|
-
* @param userId ID of the remote user.
|
|
4013
|
-
* @param playerId Player ID. An empty value indicates the default player.
|
|
4014
|
-
* @param scale Super resolution scale factor.
|
|
4015
|
-
* @group Video Management
|
|
4016
|
-
* @order 22
|
|
4017
|
-
*/
|
|
4018
|
-
setRemoteVideoSuperResolution: (streamIndex: StreamIndex, userId: string, playerId?: string, scale?: number) => void;
|
|
4019
|
-
|
|
4020
3985
|
/**
|
|
4021
3986
|
* @brief Enable or disable the mirror mode for the local video stream.
|
|
4022
3987
|
* @param mirrorType Whether to turn on mirror mode.
|
|
@@ -5282,16 +5247,6 @@ export interface IVERTC {
|
|
|
5282
5247
|
*/
|
|
5283
5248
|
getSupportedCodecs: () => Promise<string[]>;
|
|
5284
5249
|
|
|
5285
|
-
/**
|
|
5286
|
-
* @brief Gets the codec type supported by current browser, based on browsers own feedback and the knowledge been gain
|
|
5287
|
-
* previously
|
|
5288
|
-
* @return Codec types supported by the current browser
|
|
5289
|
-
* @group Engine Management
|
|
5290
|
-
* @order 20
|
|
5291
|
-
* @hidden
|
|
5292
|
-
*/
|
|
5293
|
-
getSupportedDetails: () => Promise<SupportedCodecsInfo>;
|
|
5294
|
-
|
|
5295
5250
|
/**
|
|
5296
5251
|
* @brief Configures the logging level of local cache, and the maximum cache space that can be used.
|
|
5297
5252
|
* @notes This API must be called before [createEngine](#createengine). If called after [createEngine](#createengine), it will take effect after the next [createEngine](#createengine) after [destroyEngine](#destroyengine).
|
|
@@ -6834,9 +6789,7 @@ export interface SetParamInterface {
|
|
|
6834
6789
|
ENGINE_WEB_CONFIG: {};
|
|
6835
6790
|
DISABLE_IOS_MUTE_WORKAROUND: boolean;
|
|
6836
6791
|
AUTOPLAY_THROTTLE: number;
|
|
6837
|
-
|
|
6838
|
-
IS_SUPPORTED_CHECK_COMPATIBILITY_LEVEL: IsSupportedCheckCompatibilityLevel;
|
|
6839
|
-
ENABLE_PROBE: boolean | string;
|
|
6792
|
+
USE_IPV6: boolean;
|
|
6840
6793
|
}
|
|
6841
6794
|
|
|
6842
6795
|
/**
|