@byteplus/rtc 4.47.6 → 4.47.7

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.
@@ -1,15 +1,53 @@
1
- // Generated by dts-bundle-generator v6.4.0
1
+ // Generated by dts-bundle-generator v6.13.0
2
2
 
3
+
4
+ /** {en}
5
+ * @brief Basic beauty effect mode.
6
+ */
3
7
  export declare enum EffectBeautyMode {
8
+
9
+ /** {en}
10
+ * @brief Brightness.
11
+ */
4
12
  EFFECT_WHITE_MODE = 0,
13
+
14
+ /** {en}
15
+ * @brief Smoothness.
16
+ */
5
17
  EFFECT_SMOOTH_MODE = 1,
18
+
19
+ /** {en}
20
+ * @brief Sharpness.
21
+ */
6
22
  EFFECT_SHARPEN_MODE = 2
7
23
  }
8
24
  export declare class IRTCBeautyExtension {
25
+
26
+ /** {en}
27
+ * @brief Enables basic beauty effects.
28
+ * @notes + Call [setBeautyIntensity](#setbeautyintensity) to set the beauty effect intensity. If you do not set the intensity, the brightness, smoothness, and sharpness intensity will default to 0.5.
29
+ * + Call [disable](#disable) to turn off basic beauty effects.
30
+ * + This API is not applicable to screen capturing.
31
+ */
9
32
  enable: () => void;
33
+
34
+ /** {en}
35
+ * @brief Disables basic beauty effects.
36
+ */
10
37
  disable: () => void;
38
+
39
+ /** {en}
40
+ * @brief Sets the beauty effect intensity.
41
+ * @param beautyMode Basic beauty effect.
42
+ * @param intensity Beauty effect intensity in range of [0,1], default to 0.5. When you set it to 0, the beauty effect will be turned off.
43
+ * @notes + If you call this API before calling [enable](#enable), the default settings of beauty effect intensity will adjust accordingly.
44
+ * + If you destroy the engine, the beauty effect settings will be invalid.
45
+ */
11
46
  setBeautyIntensity: (beautyMode: EffectBeautyMode, intensity: number) => void;
12
47
  }
13
- export default IRTCBeautyExtension;
48
+
49
+ export {
50
+ IRTCBeautyExtension as default,
51
+ };
14
52
 
15
53
  export {};
package/index.d.ts CHANGED
@@ -2586,7 +2586,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
2586
2586
  * @notes + Streams are not published automatically in multi-room mode by default, you need to call this API to publish streams manually.
2587
2587
  * + An invisible user cannot publish media streams. Call [setUserVisibility](#setuservisibility) to change your visibility in the room.
2588
2588
  * + Call [publishScreen](#publishscreen) to start screen sharing.
2589
- * + After you call this API, the other users in the room will receive [onUserPublishStream](104479#onuserpublishstream). Those who successfully received your streams will receive [onAudioFirstFrameDecoded](104479#onaudiofirstframedecoded)/[onVideoFirstFrameDecoded](104479#onvideofirstframedecoded) at the same time.
2589
+ * + After you call this API, the other users in the room will receive [onUserPublishStream](104479#onuserpublishstream).
2590
2590
  * + Call [unpublishStream](#unpublishstream) to stop publishing streams.
2591
2591
  * @region Room Management
2592
2592
  */
@@ -2605,7 +2605,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
2605
2605
  * @brief Publishes local screen sharing streams in the current room.
2606
2606
  * @param mediaType Media stream type, used for specifying whether to publish audio stream or video stream.
2607
2607
  * @notes + An invisible user cannot publish media streams. Call [setUserVisibility](#setuservisibility) to change your visibility in the room.
2608
- * + After you called this API, the other users in the room will receive [onUserPublishScreen](104479#onuserpublishscreen). Those who successfully received your streams will receive [onAudioFirstFrameDecoded](104479#onaudiofirstframedecoded)/[onVideoFirstFrameDecoded](104479#onvideofirstframedecoded) at the same time.
2608
+ * + After you called this API, the other users in the room will receive [onUserPublishScreen](104479#onuserpublishscreen).
2609
2609
  * + Call [unpublishScreen](#unpublishscreen) to stop publishing screen sharing streams.
2610
2610
  * @region Screen Sharing
2611
2611
  */
@@ -2645,8 +2645,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
2645
2645
  * You can call this API in both automatic subscription mode and manual subscription mode.
2646
2646
  * @param userId The ID of the remote user who published the target screen audio/video stream.
2647
2647
  * @param mediaType Media stream type, used for specifying whether to subscribe to the audio stream or the video stream.
2648
- * @notes + You must first get the remote stream information through [onUserPublishScreen](104479#onuserpublishscreen) before calling this API to subscribe to streams accordingly.
2649
- * + The [onAudioFirstFrameDecoded](104479#onaudiofirstframedecoded)/[onVideoFirstFrameDecoded](104479#onvideofirstframedecoded) callback will be triggered after calling this API to indicate that the audio/video stream was successfully received.
2648
+ * @notes You must first get the remote stream information through [onUserPublishScreen](104479#onuserpublishscreen) before calling this API to subscribe to streams accordingly.
2650
2649
  * @region Room Management
2651
2650
  */
2652
2651
  subscribeScreen: (userId: string, mediaType: MediaType) => Promise<void>;