@byteplus/rtc 4.47.1 → 4.47.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
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v6.4.0
1
+ // Generated by dts-bundle-generator v6.13.0
2
2
 
3
3
  import { EventArgs, EventEmitter, EventNames, ValidEventTypes } from 'eventemitter3';
4
4
 
@@ -1292,7 +1292,7 @@ export interface RemoteAudioStats {
1292
1292
 
1293
1293
  /**
1294
1294
  * @hidden
1295
- * @brief Decoding duration, unit: s
1295
+ * @brief Cumulative decoding time in seconds of the remote audio stream in this subscription.
1296
1296
  */
1297
1297
  decDuration?: number;
1298
1298
  }
@@ -1486,13 +1486,13 @@ declare enum EngineEventsTypes {
1486
1486
 
1487
1487
  /**
1488
1488
  * @brief The first video frame has been rendered successfully.
1489
- * @deprecated
1489
+ * @deprecated since 4.47, use on onRemoteVideoFirstFrame instead.
1490
1490
  */
1491
1491
  onVideoFirstFrameRendered = "onVideoFirstFrameRendered",
1492
1492
 
1493
1493
  /**
1494
1494
  * @brief The first video frame has been decoded successfully.
1495
- * @deprecated
1495
+ * @deprecated since 4.47, use on onRemoteVideoFirstFrame instead.
1496
1496
  */
1497
1497
  onVideoFirstFrameDecoded = "onVideoFirstFrameDecoded",
1498
1498
 
@@ -1502,7 +1502,7 @@ declare enum EngineEventsTypes {
1502
1502
  onRemoteVideoFirstFrame = "onRemoteVideoFirstFrame",
1503
1503
 
1504
1504
  /**
1505
- * @deprecated
1505
+ * @deprecated since 4.47, use on onRemoteAudioFirstFrame instead.
1506
1506
  * @brief The first audio frame has been decoded successfully.
1507
1507
  */
1508
1508
  onAudioFirstFrameDecoded = "onAudioFirstFrameDecoded",
@@ -1607,7 +1607,8 @@ declare enum EngineEventsTypes {
1607
1607
  onRemoteVideoSizeChanged = "onRemoteVideoSizeChanged",
1608
1608
  onVideoStreamBanned = "onVideoStreamBanned",
1609
1609
  onAudioStreamBanned = "onAudioStreamBanned",
1610
- onLocalVideoSizeChanged = "onLocalVideoSizeChanged"
1610
+ onLocalVideoSizeChanged = "onLocalVideoSizeChanged",
1611
+ onServerParamsSetResult = "onServerParamsSetResult"
1611
1612
  }
1612
1613
 
1613
1614
  /**
@@ -2024,6 +2025,8 @@ export interface IEngineEvents {
2024
2025
  }) => void;
2025
2026
 
2026
2027
  /**
2028
+ * @hidden
2029
+ * @deprecated since 4.47, use on onRemoteVideoFirstFrame instead.
2027
2030
  * @brief Rendering of the first video frame
2028
2031
  * @param event
2029
2032
  * @region Video Management Event
@@ -2031,6 +2034,8 @@ export interface IEngineEvents {
2031
2034
  [EngineEventsTypes.onVideoFirstFrameRendered]: (event: onVideoFirstFrameRenderedEvent) => void;
2032
2035
 
2033
2036
  /**
2037
+ * @hidden
2038
+ * @deprecated since 4.47, use on onRemoteVideoFirstFrame instead.
2034
2039
  * @brief Rendering of the first video frame
2035
2040
  * @param event
2036
2041
  * @region Video Management Event
@@ -2045,6 +2050,8 @@ export interface IEngineEvents {
2045
2050
  [EngineEventsTypes.onRemoteVideoFirstFrame]: (event: onVideoFirstFrameRenderedEvent) => void;
2046
2051
 
2047
2052
  /**
2053
+ * @hidden
2054
+ * @deprecated since 4.47, use on onRemoteAudioFirstFrame instead.
2048
2055
  * @brief Decoding of the first audio frame
2049
2056
  * @param event
2050
2057
  * @region Audio Management Event
@@ -2468,8 +2475,7 @@ export interface IEngineEvents {
2468
2475
  * @brief The callback is triggered when the openAPI BanUserStream/UnbanUserStream is called to ban/unban the video stream of the specified user from publishing.
2469
2476
  * @param event
2470
2477
  * @notes + When the specified user in the room is banned/unbanned from sending video streams, all users in the room will receive the callback.
2471
- * + If the banned user leaves and then enters the room, the user is still banned from publishing video stream, and all users in the room will receive the callback again.
2472
- * + If the banned user reconnects due to connection drop, the user remains being banned, and only the banned user receives the callback.
2478
+ * + If the banned user leaves or disconnects and then rejoins the room, the user is still banned from publishing audio stream, and all users in the room will be informed via the callback.
2473
2479
  * + If a user is banned, other users receive this callback again when they leave and re-enter the room.
2474
2480
  * + Only banned/unbanned user will receive this callback if the conference mode is enabled in the console.
2475
2481
  * + If the room is dissolved and created again, the status in the room is cleared.
@@ -2480,8 +2486,7 @@ export interface IEngineEvents {
2480
2486
  * @brief The callback is triggered when the openAPI BanUserStream/UnbanUserStream is called to ban/unban the audio stream of the specified user from publishing.
2481
2487
  * @param event
2482
2488
  * @notes + When the specified user in the room is banned/unbanned from sending audio streams, all users in the room will receive the callback.
2483
- * + If the banned user leaves and then enters the room, the user is still banned from publishing audio stream, and all users in the room will receive the callback again.
2484
- * + If the banned user reconnects due to connection drop, the user remains being banned, and only the banned user receives the callback.
2489
+ * + If the banned user leaves or disconnects and then rejoins the room, the user is still banned from publishing audio stream, and all users in the room will be informed via the callback.
2485
2490
  * + If a user is banned, other users receive this callback again when they leave and re-enter the room.
2486
2491
  * + Only banned/unbanned user will receive this callback if the conference mode is enabled in the console.
2487
2492
  * + If the room is dissolved and created again, the status in the room is cleared.
@@ -2514,6 +2519,14 @@ export interface IEngineEvents {
2514
2519
  height: number;
2515
2520
  };
2516
2521
  }) => void;
2522
+
2523
+ /**
2524
+ * @brief Event of whether the setting for the message server successes
2525
+ * @param error Error code
2526
+ * @notes + This event notifies you the result after the call of [setServerParams](104478#setServerParams).
2527
+ * + If the client losts connection after the call of [setServerParams](104478#setServerParams) this event notifies once the client reconnects.
2528
+ */
2529
+ [EngineEventsTypes.onServerParamsSetResult]: (error?: ErrorCode) => void;
2517
2530
  }
2518
2531
 
2519
2532
  /**
@@ -2937,8 +2950,8 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
2937
2950
  * @brief Starts pushing media streams to CDN and sets the relevant configurations.
2938
2951
  * @param transcode configuration for push media streams to CDN.
2939
2952
  * @return
2940
- * @notes + After calling this API, you will be informed of the result and errors during the pushing process via [onLiveTransCodingResult](104479#onlivetranscodingresult).
2941
- * + Call [stopLiveTranscoding](#stoplivetranscoding) to stop pushing stream to CDN.
2953
+ * @notes + After calling this API, you will receive the pushing a mixed stream to CDN events via [onStreamMixingEvent](104479#onstreammixingevent).
2954
+ * + Call [stopLiveTranscoding](#stoplivetranscoding) to stop pushing mixed streams to CDN.
2942
2955
  * @region Advanced Feature
2943
2956
  */
2944
2957
  startLiveTranscoding: (transcode: LiveTranscodeConfig) => Promise<void>;
@@ -3111,7 +3124,8 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
3111
3124
  * @param signature Dynamic signature.
3112
3125
  * @param url Address of the IM server
3113
3126
  * @return
3114
- * @notes Call [login](#login) before calling this API.
3127
+ * @notes + Call [login](#login) before calling this API.
3128
+ * + [onServerParamsSetResult](104479#onserverparamssetresult) notifies you whether the setting successes.
3115
3129
  */
3116
3130
  setServerParams: (signature: string, url: string) => Promise<any>;
3117
3131
 
@@ -3149,13 +3163,13 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
3149
3163
 
3150
3164
  /**
3151
3165
  * @brief Starts publishing a public media stream.
3152
- * A public stream is a media stream that does not belong to any room or any user. Users with the same `appID` can call [startPlayPublicStream](#startplaypublicstream) to subscribe to and play the public stream.
3153
3166
  * @param publicStreamId The public stream's ID.
3154
3167
  * @param publicStreamParam The public stream's parameters.
3155
3168
  * A public stream can contain several media streams and will appears as the designated layout.
3156
3169
  * If the designated media stream is not published yet, the public stream will automatically update once the media stream is published.
3157
3170
  * @return
3158
- * @notes + You cannot update the parameters of the public stream by repeatedly calling this API with the same stream ID by the same user. Call [updatePublicStreamParam](#updatepublicstreamparam) to update the parameters instead.
3171
+ * @notes + Users with the same `appID` can call [startPlayPublicStream](#startplaypublicstream) to subscribe to and play the public stream despite whether he/she has join the room.
3172
+ * + You cannot update the parameters of the public stream by repeatedly calling this API with the same stream ID by the same user. Call [updatePublicStreamParam](#updatepublicstreamparam) to update the parameters instead.
3159
3173
  * + Users with different `userID` can call this API with the same stream ID to update the parameters.
3160
3174
  * + Call this API with different stream ID to publish multiple public streams.
3161
3175
  * + Call [stopPushPublicStream](#stoppushpublicstream) to stop publishing the public stream.
@@ -4831,7 +4845,10 @@ declare class VERTC implements IVERTC {
4831
4845
  private _monitor;
4832
4846
  }
4833
4847
  declare const _default: VERTC;
4834
- export default _default;
4848
+
4849
+ export {
4850
+ _default as default,
4851
+ };
4835
4852
 
4836
4853
  export as namespace RTC;
4837
4854