@byteplus/rtc 4.46.6 → 4.46.8
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 +19 -6
- package/index.esm.min.js +2 -2
- package/index.min.js +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v6.
|
|
1
|
+
// Generated by dts-bundle-generator v6.13.0
|
|
2
2
|
|
|
3
3
|
import { EventArgs, EventEmitter, EventNames, ValidEventTypes } from 'eventemitter3';
|
|
4
4
|
|
|
@@ -1569,7 +1569,8 @@ declare enum EngineEventsTypes {
|
|
|
1569
1569
|
onRemoteVideoSizeChanged = "onRemoteVideoSizeChanged",
|
|
1570
1570
|
onVideoStreamBanned = "onVideoStreamBanned",
|
|
1571
1571
|
onAudioStreamBanned = "onAudioStreamBanned",
|
|
1572
|
-
onLocalVideoSizeChanged = "onLocalVideoSizeChanged"
|
|
1572
|
+
onLocalVideoSizeChanged = "onLocalVideoSizeChanged",
|
|
1573
|
+
onServerParamsSetResult = "onServerParamsSetResult"
|
|
1573
1574
|
}
|
|
1574
1575
|
|
|
1575
1576
|
/**
|
|
@@ -2461,6 +2462,14 @@ export interface IEngineEvents {
|
|
|
2461
2462
|
height: number;
|
|
2462
2463
|
};
|
|
2463
2464
|
}) => void;
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* @brief Event of whether the setting for the message server successes
|
|
2468
|
+
* @param error Error code
|
|
2469
|
+
* @notes + This event notifies you the result after the call of [setServerParams](104478#setServerParams).
|
|
2470
|
+
* + If the client losts connection after the call of [setServerParams](104478#setServerParams) this event notifies once the client reconnects.
|
|
2471
|
+
*/
|
|
2472
|
+
[EngineEventsTypes.onServerParamsSetResult]: (error?: ErrorCode) => void;
|
|
2464
2473
|
}
|
|
2465
2474
|
|
|
2466
2475
|
/**
|
|
@@ -3056,7 +3065,8 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
|
|
|
3056
3065
|
* @param signature Dynamic signature.
|
|
3057
3066
|
* @param url Address of the IM server
|
|
3058
3067
|
* @return
|
|
3059
|
-
* @notes Call [login](#login) before calling this API.
|
|
3068
|
+
* @notes + Call [login](#login) before calling this API.
|
|
3069
|
+
* + [onServerParamsSetResult](104479#onserverparamssetresult) notifies you whether the setting successes.
|
|
3060
3070
|
*/
|
|
3061
3071
|
setServerParams: (signature: string, url: string) => Promise<any>;
|
|
3062
3072
|
|
|
@@ -3094,13 +3104,13 @@ export interface IRTCEngine extends EnhancedEventEmitter<IEngineEvents> {
|
|
|
3094
3104
|
|
|
3095
3105
|
/**
|
|
3096
3106
|
* @brief Starts publishing a public media stream.
|
|
3097
|
-
* 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.
|
|
3098
3107
|
* @param publicStreamId The public stream's ID.
|
|
3099
3108
|
* @param publicStreamParam The public stream's parameters.
|
|
3100
3109
|
* A public stream can contain several media streams and will appears as the designated layout.
|
|
3101
3110
|
* If the designated media stream is not published yet, the public stream will automatically update once the media stream is published.
|
|
3102
3111
|
* @return
|
|
3103
|
-
* @notes +
|
|
3112
|
+
* @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.
|
|
3113
|
+
* + 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.
|
|
3104
3114
|
* + Users with different `userID` can call this API with the same stream ID to update the parameters.
|
|
3105
3115
|
* + Call this API with different stream ID to publish multiple public streams.
|
|
3106
3116
|
* + Call [stopPushPublicStream](#stoppushpublicstream) to stop publishing the public stream.
|
|
@@ -4701,7 +4711,10 @@ declare class VERTC implements IVERTC {
|
|
|
4701
4711
|
private _monitor;
|
|
4702
4712
|
}
|
|
4703
4713
|
declare const _default: VERTC;
|
|
4704
|
-
|
|
4714
|
+
|
|
4715
|
+
export {
|
|
4716
|
+
_default as default,
|
|
4717
|
+
};
|
|
4705
4718
|
|
|
4706
4719
|
export as namespace RTC;
|
|
4707
4720
|
|