@byteplus/rtc 4.66.3 → 4.66.5

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
@@ -2317,7 +2317,7 @@ export interface AudioPropertiesInfo {
2317
2317
 
2318
2318
  /**
2319
2319
  * @brief linear volume. The value is in linear relation to the original volume. The higher the value, the higher the volume. The range is [0,255]. <br>
2320
- * - [0, 25]: Silence <br>
2320
+ * - [0, 25]: Nearly silent <br>
2321
2321
  * - [26, 75]: Low volume <br>
2322
2322
  * - [76, 204]: Medium volume <br>
2323
2323
  * - [205, 255]: High volume <br>
@@ -2326,7 +2326,7 @@ export interface AudioPropertiesInfo {
2326
2326
 
2327
2327
  /**
2328
2328
  * @brief non-linear volume in dB. The value is in proportion to the log value of the original volume. You can use the value to recognize the Active Speaker in the room. The range is [-127, 0]. <br>
2329
- * - [-127, -60]: Silence <br>
2329
+ * - [-127, -60]: Nearly silent
2330
2330
  * - [-59, -40]: Low volume <br>
2331
2331
  * - [-39, -20]: Medium volume <br>
2332
2332
  * - [-19, 0]: High volume <br>
@@ -2461,17 +2461,19 @@ export interface CoreConfigType {
2461
2461
  }
2462
2462
 
2463
2463
  /**
2464
- * @brief Information and state of a media device.
2464
+ * @brief Information of an audio or video media device (such as camera, microphone, speaker) and its connection state.
2465
2465
  */
2466
2466
  export interface DeviceInfo {
2467
2467
 
2468
2468
  /**
2469
- * @brief Information of a media device. See [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).
2469
+ * @brief Device information, including device ID, type, etc. For details, see [MediaDeviceInfo](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo).
2470
2470
  */
2471
2471
  mediaDeviceInfo: MediaDeviceInfo;
2472
2472
 
2473
2473
  /**
2474
- * @brief Device state.
2474
+ * @brief Device state:
2475
+ * - active: The device is connected.
2476
+ * - inactive: The device is disconnected.
2475
2477
  */
2476
2478
  deviceState: "active" | "inactive";
2477
2479
  }
@@ -2912,16 +2914,18 @@ export interface IEngineEvents {
2912
2914
  [EngineEventsTypes.onRemoteAudioFirstFrame]: (event: onAudioFirstFrameDecodedEvent) => void;
2913
2915
 
2914
2916
  /**
2915
- * @brief Event of video device state changing.
2916
- * @param event Information and state of a media device.
2917
+ * @brief Triggered when the connection state of a video device (i.e., camera) changes, such as when a device is disconnected/connected due to plugging or unplugging.<br/>
2918
+ * > You need to obtain device permissions first (which can be acquired through [enableDevices](104478#enabledevices)) to receive this callback.
2919
+ * @param event Information (such as device ID and type) and connection state of the device.
2917
2920
  * @group Device Management
2918
2921
  * @order 60
2919
2922
  */
2920
2923
  [EngineEventsTypes.onVideoDeviceStateChanged]: (event: DeviceInfo) => void;
2921
2924
 
2922
2925
  /**
2923
- * @brief Event of audio device state changing.
2924
- * @param event Information and state of a media device.
2926
+ * @brief Triggered when the connection state of an audio media device (i.e., microphone, speaker) changes, such as when a device is disconnected/connected due to plugging or unplugging.<br/>
2927
+ * > You need to obtain device permissions first (which can be acquired through [enableDevices](104478#enabledevices)) to receive this callback.
2928
+ * @param event Information (such as device ID and type) and connection state of the device.
2925
2929
  * @group Device Management
2926
2930
  * @order 50
2927
2931
  */
@@ -4024,12 +4028,12 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
4024
4028
  * @param userId The user ID. The empty value indicates the local stream.
4025
4029
  * @return If the specified stream does not exist, the volume values are `0`.
4026
4030
  * + linear volume. The value is in linear relation to the original volume. The higher the value, the higher the volume. The range is [0,255]. <br>
4027
- * &ensp; - \[0, 25]: Silence
4031
+ * &ensp; - \[0, 25]: Nearly silent
4028
4032
  * &ensp; - \[26, 75]: Low volume
4029
4033
  * &ensp; - \[76, 204]: Medium volume
4030
4034
  * &ensp; - \[205, 255]: High volume
4031
4035
  * + non-linear volume in dB. The value is in proportion to the log value of the original volume. You can use the value to recognize the Active Speaker in the room. The range is [-127, 0].
4032
- * &ensp; - \[-127, -60]: Silence
4036
+ * &ensp; - \[-127, -60]: Nearly silent
4033
4037
  * &ensp; - \[-59, -40]: Low volume
4034
4038
  * &ensp; - \[-39, -20]: Medium volume
4035
4039
  * &ensp; - \[-19, 0]: High volume
@@ -4388,7 +4392,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
4388
4392
  getWTNStreamManager: () => IWTNStream;
4389
4393
 
4390
4394
  /**
4391
- * @brief > Available since v4.66.
4395
+ * @brief > Available since v4.66.<br>
4392
4396
  * Get the call ID. Call this method after joining a room.
4393
4397
  * After creating a room, a `callId` is generated to identify the call for this room.
4394
4398
  * @return The call ID (`callId`) of the room.
@@ -6718,6 +6722,7 @@ export interface SetParamInterface {
6718
6722
  PRODUCT: string;
6719
6723
  FORCE_ENABLED_REPORT_CALLBACKS: string[];
6720
6724
  SKIP_WEB_AUDIO_IN_TRACK: boolean;
6725
+ ENFORCE_WEB_AUDIO_SUPPORTED: boolean;
6721
6726
  AUDIO_STALL: boolean;
6722
6727
  VIDEO_STALL: boolean;
6723
6728
  VIDEO_STALL_100MS: boolean;
@@ -6751,6 +6756,7 @@ export interface SetParamInterface {
6751
6756
  AREA_CODE: string;
6752
6757
  DISABLE_COMPUTE_PRESSURE: boolean;
6753
6758
  SEND_MESSAGE_SYNC: boolean;
6759
+ H264_HW_ENCODER: boolean;
6754
6760
  }
6755
6761
 
6756
6762
  /**