diff --git a/ts/Private/AgoraBase.ts b/ts/Private/AgoraBase.ts index 52795364f..ce1017072 100644 --- a/ts/Private/AgoraBase.ts +++ b/ts/Private/AgoraBase.ts @@ -851,7 +851,7 @@ export enum VideoCodecCapabilityLevel { */ export enum VideoCodecType { /** - * @ignore + * 0: (Default) Unspecified codec format. The SDK automatically matches the appropriate codec format based on the current video stream's resolution and device performance. */ VideoCodecNone = 0, /** @@ -863,7 +863,7 @@ export enum VideoCodecType { */ VideoCodecH264 = 2, /** - * 3: (Default) Standard H.265. In certain scenarios, such as low resolution of the captured video stream or limited device performance, the SDK automatically adjusts to the H.264 encoding format. + * 3: Standard H.265. */ VideoCodecH265 = 3, /** @@ -4556,7 +4556,7 @@ export class EchoTestConfiguration { */ enableAudio?: boolean; /** - * Whether to enable the video device for the loop test: true : (Default) Enable the video device. To test the video device, set this parameter as true. false : Disable the video device. + * Whether to enable the video device for the loop test. Currently, video device loop test is not supported. Please set this parameter to false. */ enableVideo?: boolean; /** diff --git a/ts/Private/IAgoraRtcEngine.ts b/ts/Private/IAgoraRtcEngine.ts index 8c43d796a..185bc997b 100644 --- a/ts/Private/IAgoraRtcEngine.ts +++ b/ts/Private/IAgoraRtcEngine.ts @@ -1526,7 +1526,6 @@ export interface IRtcEngineEventHandler { * The remote user stops sending the video stream and re-sends it after 15 seconds. Reasons for such an interruption include: * The remote user leaves the channel. * The remote user drops offline. - * The remote user calls muteLocalVideoStream to stop sending the video stream. * The remote user calls disableVideo to disable video. * * @param connection The connection information. See RtcConnection. @@ -3479,7 +3478,7 @@ export abstract class IRtcEngine { * Disables the audio module. * * This method disables the internal engine and can be called anytime after initialization. It is still valid after one leaves channel. - * This method resets the internal engine and takes some time to take effect. Agora recommends using the following API methods to control the audio modules separately: enableLocalAudio : Whether to enable the microphone to create the local audio stream. muteLocalAudioStream : Whether to publish the local audio stream. muteRemoteAudioStream : Whether to subscribe and play the remote audio stream. muteAllRemoteAudioStreams : Whether to subscribe to and play all remote audio streams. + * This method resets the internal engine and takes some time to take effect. Agora recommends using the following API methods to control the audio modules separately: enableLocalAudio : Whether to enable the microphone to create the local audio stream. enableLoopbackRecording : Whether to enable loopback audio capturing. muteLocalAudioStream : Whether to publish the local audio stream. muteRemoteAudioStream : Whether to subscribe and play the remote audio stream. muteAllRemoteAudioStreams : Whether to subscribe to and play all remote audio streams. * * @returns * 0: Success. @@ -4770,8 +4769,8 @@ export abstract class IRtcEngine { * The SDK defaults to enabling low-quality video stream adaptive mode (AutoSimulcastStream) on the sender side, which means the sender does not actively send low-quality video stream. The receiver can initiate a low-quality video stream request by calling setRemoteVideoStreamType, and the sender then automatically starts sending low-quality video stream upon receiving the request. * If you want to modify this behavior, you can call this method and set mode to DisableSimulcastStream (never send low-quality video streams) or EnableSimulcastStream (always send low-quality video streams). * If you want to restore the default behavior after making changes, you can call this method again with mode set to AutoSimulcastStream. The difference and connection between this method and enableDualStreamMode is as follows: - * When calling this method and setting mode to DisableSimulcastStream, it has the same effect as calling and setting enabled to false. - * When calling this method and setting mode to EnableSimulcastStream, it has the same effect as calling and setting enabled to true. + * When calling this method and setting mode to DisableSimulcastStream, it has the same effect as calling enableDualStreamMode and setting enabled to false. + * When calling this method and setting mode to EnableSimulcastStream, it has the same effect as calling enableDualStreamMode and setting enabled to true. * Both methods can be called before and after joining a channel. If both methods are used, the settings in the method called later takes precedence. * * @param mode The mode in which the video stream is sent. See SimulcastStreamMode. @@ -5129,8 +5128,9 @@ export abstract class IRtcEngine { * If you enable loopback audio capturing, the output of the sound card is mixed into the audio stream sent to the other end. * macOS does not support loopback audio capture of the default sound card. If you need to use this function, use a virtual sound card and pass its name to the deviceName parameter. Agora recommends using AgoraALD as the virtual sound card for audio capturing. * You can call this method either before or after joining a channel. + * If you call the disableAudio method to disable the audio module, audio capturing will be disabled as well. If you need to enable audio capturing, call the enableAudio method to enable the audio module and then call the enableLoopbackRecording method. * - * @param enabled Whether to enable loopback audio capturing. true : Enable loopback audio capturing. false : (Default) Disable loopback audio capturing. + * @param enabled Sets whether to enable loopback audio capturing. true : Enable loopback audio capturing. false : (Default) Disable loopback audio capturing. * @param deviceName macOS: The device name of the virtual sound card. The default value is set to NULL, which means using AgoraALD for loopback audio capturing. * Windows: The device name of the sound card. The default is set to NULL, which means the SDK uses the sound card of your device for loopback audio capturing. * @@ -5839,8 +5839,7 @@ export abstract class IRtcEngine { /** * Adds event handlers * - * The SDK uses the IRtcEngineEventHandler class to send callbacks to the app. The app inherits the methods of this class to receive these callbacks. All methods in this class have default (empty) implementations. Therefore, apps only need to inherits callbacks according to the scenarios. In the callbacks, avoid time-consuming tasks or calling APIs that can block the thread, such as the sendStreamMessage method. - * Otherwise, the SDK may not work properly. + * The SDK uses the IRtcEngineEventHandler class to send callbacks to the app. The app inherits the methods of this class to receive these callbacks. All methods in this class have default (empty) implementations. Therefore, apps only need to inherits callbacks according to the scenarios. In the callbacks, avoid time-consuming tasks or calling APIs that can block the thread, such as the sendStreamMessage method. Otherwise, the SDK may not work properly. * * @param eventHandler Callback events to be added. See IRtcEngineEventHandler. * @@ -5942,8 +5941,7 @@ export abstract class IRtcEngine { * Sends data stream messages to all users in a channel. The SDK has the following restrictions on this method: * Up to 30 packets can be sent per second in a channel with each packet having a maximum size of 1 KB. * Each client can send up to 6 KB of data per second. - * Each user can have up to five data streams simultaneously. A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message. - * A failed method call triggers the onStreamMessageError callback on the remote client. + * Each user can have up to five data streams simultaneously. A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the onStreamMessageError callback on the remote client. * Ensure that you call createDataStream to create a data channel before calling this method. * In live streaming scenarios, this method only applies to hosts. * @@ -6595,7 +6593,7 @@ export abstract class IRtcEngine { /** * Starts screen capture. * - * This method, as well as startScreenCaptureByDisplayId and startScreenCaptureByWindowId, all have the capability to start screen capture, with the following differences: startScreenCaptureByDisplayId and startScreenCaptureByWindowId only support capturing video from a single screen or window. By calling this method and specifying the sourceType parameter, you can capture multiple video streams used for local video mixing or multi-channel publishing. + * This method, as well as startScreenCaptureByDisplayId and startScreenCaptureByWindowId, can all be used to enable screen capture, with the following differences: startScreenCaptureByDisplayId and startScreenCaptureByWindowId only support capturing video from a single screen or window. By calling this method and specifying the sourceType parameter, you can capture multiple video streams used for local video mixing or multi-channel publishing. * If you call this method to start screen capture, Agora recommends that you call stopScreenCaptureBySourceType to stop the capture and avoid using stopScreenCapture. * * @param sourceType The type of the video source. See VideoSourceType. diff --git a/ts/Private/IAgoraRtcEngineEx.ts b/ts/Private/IAgoraRtcEngineEx.ts index 07a028fba..bda54e184 100644 --- a/ts/Private/IAgoraRtcEngineEx.ts +++ b/ts/Private/IAgoraRtcEngineEx.ts @@ -542,8 +542,7 @@ export abstract class IRtcEngineEx extends IRtcEngine { * After calling createDataStreamEx, you can call this method to send data stream messages to all users in the channel. The SDK has the following restrictions on this method: * Up to 60 packets can be sent per second in a channel with each packet having a maximum size of 1 KB. * Each client can send up to 30 KB of data per second. - * Each user can have up to five data streams simultaneously. A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message. - * A failed method call triggers the onStreamMessageError callback on the remote client. + * Each user can have up to five data streams simultaneously. A successful method call triggers the onStreamMessage callback on the remote client, from which the remote user gets the stream message. A failed method call triggers the onStreamMessageError callback on the remote client. * Ensure that you call createDataStreamEx to create a data channel before calling this method. * This method applies only to the COMMUNICATION profile or to the hosts in the LIVE_BROADCASTING profile. If an audience in the LIVE_BROADCASTING profile calls this method, the audience may be switched to a host. *