@byteplus/rtc 4.47.2 → 4.47.4

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
@@ -188,6 +188,7 @@ declare enum ErrorCode {
188
188
  * @brief The browser does not support capture.
189
189
  */
190
190
  NOT_SUPPORTED = "NOT_SUPPORTED",
191
+ INTERRUPT = "INTERRUPT",
191
192
 
192
193
  /**
193
194
  * @brief Failure of requesting an ICE node
@@ -941,7 +942,7 @@ export interface onVideoFirstFrameDecodedEvent {
941
942
  /**
942
943
  * Event related to decoding the first video frame of the public stream.
943
944
  */
944
- export declare type PublicStreamVideoFirstFrameDecodedEvent = Omit<
945
+ export type PublicStreamVideoFirstFrameDecodedEvent = Omit<
945
946
 
946
947
  /**
947
948
  * @brief Event related to the decoding of the first video frame.
@@ -1416,7 +1417,7 @@ export interface RemoteStreamStats {
1416
1417
  /**
1417
1418
  * @brief Subscribed public stream's statistics and network condition, reference period 2s.
1418
1419
  */
1419
- export declare type PublicStreamStats = Omit<
1420
+ export type PublicStreamStats = Omit<
1420
1421
 
1421
1422
  /**
1422
1423
  * @brief Remote stream stats
@@ -2767,7 +2768,7 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
2767
2768
 
2768
2769
  /**
2769
2770
  * @brief Bind a view to the remote media stream and set the rendering mode for the rendering of the remote stream
2770
- * It's recommended to call this API and bind a view once the event of `onVideoFirstFrameRendered` is triggered.
2771
+ * It's recommended to call this API and bind a view once the event of `onUserPublishStream` is triggered.
2771
2772
  * Call this API again with a blank view to unbind the view from the remote video stream.
2772
2773
  * @param streamIndex Video stream properties
2773
2774
  * @param videoPlayer View information and rendering mode
@@ -3921,7 +3922,7 @@ export interface ScreenEncoderConfig {
3921
3922
  /**
3922
3923
  * @brief Internal capture configuration for video & audio. Refer to [browser documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints) for more details.
3923
3924
  */
3924
- export declare type TrackCaptureConfig = Omit<MediaTrackConstraints, "deviceId">;
3925
+ export type TrackCaptureConfig = Omit<MediaTrackConstraints, "deviceId">;
3925
3926
 
3926
3927
  /**
3927
3928
  * @brief The mirror type
@@ -4240,7 +4241,7 @@ export declare enum PublicInterpolationMode {
4240
4241
  /**
4241
4242
  * @brief Layout configuration of a media stream
4242
4243
  */
4243
- export declare type PublicStreamLayoutRegion = Omit<LiveTranscodeLayoutRegion, "isLocalUser" | "contentControl"> & {
4244
+ export type PublicStreamLayoutRegion = Omit<LiveTranscodeLayoutRegion, "isLocalUser" | "contentControl"> & {
4244
4245
 
4245
4246
  /**
4246
4247
  * @brief Room ID of the user that publishes the media stream.