@byteplus/rtc 4.66.28 → 4.66.29-probe.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/index.d.ts CHANGED
@@ -28,6 +28,7 @@ declare class VERTC implements IVERTC {
28
28
  setParameter: typeof setParameter;
29
29
  isSupported: () => Promise<boolean>;
30
30
  getSupportedCodecs: () => Promise<string[]>;
31
+ getSupportedDetails: () => Promise<SupportedCodecsInfo>;
31
32
  getElectronScreenSources: typeof getElectronScreenSources;
32
33
  events: typeof EngineEventsTypes;
33
34
  ErrorCode: typeof ErrorCode;
@@ -933,6 +934,11 @@ declare enum StreamMixingEventType {
933
934
  declare function getElectronScreenSources(type?: ScreenSourceType): Promise<ElectronDesktopCapturerSource[]>;
934
935
  declare function getParameter(key: keyof typeof Config): {} | undefined;
935
936
  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
+ }
936
942
 
937
943
  /**
938
944
  * @brief Advanced Audio Coding (AAC) profile.
@@ -2232,6 +2238,21 @@ export declare interface ElectronDesktopCapturerSource {
2232
2238
  */
2233
2239
  thumbnail: IElectronNativeImage;
2234
2240
  }
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
+ }
2235
2256
  export declare type RTCExtension = any;
2236
2257
 
2237
2258
  /**
@@ -2449,6 +2470,9 @@ export interface CloudProxyInfo {
2449
2470
  */
2450
2471
  configProxy: string;
2451
2472
  }
2473
+ export interface CompabilityCondition {
2474
+ resolution?: "90p" | "180p" | "360p" | "480p" | "540p" | "720p" | "960p" | "1080p";
2475
+ }
2452
2476
 
2453
2477
  /**
2454
2478
  * @brief The connection state changes.
@@ -5247,6 +5271,16 @@ export interface IVERTC {
5247
5271
  */
5248
5272
  getSupportedCodecs: () => Promise<string[]>;
5249
5273
 
5274
+ /**
5275
+ * @brief Gets the codec type supported by current browser, based on browsers own feedback and the knowledge been gain
5276
+ * previously
5277
+ * @return Codec types supported by the current browser
5278
+ * @group Engine Management
5279
+ * @order 20
5280
+ * @hidden
5281
+ */
5282
+ getSupportedDetails: () => Promise<SupportedCodecsInfo>;
5283
+
5250
5284
  /**
5251
5285
  * @brief Configures the logging level of local cache, and the maximum cache space that can be used.
5252
5286
  * @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).
@@ -6788,6 +6822,9 @@ export interface SetParamInterface {
6788
6822
  AUTOPLAY_WORKAROUND: boolean;
6789
6823
  ENGINE_WEB_CONFIG: {};
6790
6824
  DISABLE_IOS_MUTE_WORKAROUND: boolean;
6825
+ IS_SUPPORTED_CHECK_COMPATIBILITY_LEVEL: IsSupportedCheckCompatibilityLevel;
6826
+ ENABLE_PROBE: boolean | string;
6827
+ JOIN_CUSTOM_PARAMS: {};
6791
6828
  }
6792
6829
 
6793
6830
  /**