Skip to content

Commit

Permalink
[AUTO] Generate codes by terra (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: guoxianzhe <guoxianzhe@users.noreply.github.com>
  • Loading branch information
sda-rob and guoxianzhe authored Apr 15, 2024
1 parent b9bbef2 commit 9afe012
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 95 deletions.
2 changes: 1 addition & 1 deletion src/AgoraBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3486,7 +3486,7 @@ export class VideoCanvas {
*/
export enum LighteningContrastLevel {
/**
* @ignore
* 0: Low contrast level.
*/
LighteningContrastLow = 0,
/**
Expand Down
42 changes: 3 additions & 39 deletions src/AgoraMediaBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,15 +652,15 @@ export class VideoFrame {
*/
height?: number;
/**
* For YUV data, the line span of the Y buffer; for RGBA data, the total data length.
* For YUV data, the line span of the Y buffer; for RGBA data, the total data length. When dealing with video data, it is necessary to process the offset between each line of pixel data based on this parameter, otherwise it may result in image distortion.
*/
yStride?: number;
/**
* For YUV data, the line span of the U buffer; for RGBA data, the value is 0.
* For YUV data, the line span of the U buffer; for RGBA data, the value is 0. When dealing with video data, it is necessary to process the offset between each line of pixel data based on this parameter, otherwise it may result in image distortion.
*/
uStride?: number;
/**
* For YUV data, the line span of the V buffer; for RGBA data, the value is 0.
* For YUV data, the line span of the V buffer; for RGBA data, the value is 0. When dealing with video data, it is necessary to process the offset between each line of pixel data based on this parameter, otherwise it may result in image distortion.
*/
vStride?: number;
/**
Expand Down Expand Up @@ -911,9 +911,6 @@ export interface IAudioFrameObserverBase {
*
* @param channelId The channel ID.
* @param audioFrame The raw audio data. See AudioFrame.
*
* @returns
* Without practical meaning.
*/
onRecordAudioFrame?(channelId: string, audioFrame: AudioFrame): void;

Expand All @@ -924,9 +921,6 @@ export interface IAudioFrameObserverBase {
*
* @param channelId The channel ID.
* @param audioFrame The raw audio data. See AudioFrame.
*
* @returns
* Without practical meaning.
*/
onPlaybackAudioFrame?(channelId: string, audioFrame: AudioFrame): void;

Expand All @@ -937,9 +931,6 @@ export interface IAudioFrameObserverBase {
*
* @param channelId The channel ID.
* @param audioFrame The raw audio data. See AudioFrame.
*
* @returns
* Without practical meaning.
*/
onMixedAudioFrame?(channelId: string, audioFrame: AudioFrame): void;

Expand All @@ -949,9 +940,6 @@ export interface IAudioFrameObserverBase {
* In order to ensure that the obtained in-ear audio data meets the expectations, Agora recommends that you set the in-ear monitoring-ear audio data format as follows: After calling setEarMonitoringAudioFrameParameters to set the audio data format and registerAudioFrameObserver to register the audio frame observer object, the SDK calculates the sampling interval according to the parameters set in the methods, and triggers the onEarMonitoringAudioFrame callback according to the sampling interval.
*
* @param audioFrame The raw audio data. See AudioFrame.
*
* @returns
* Without practical meaning.
*/
onEarMonitoringAudioFrame?(audioFrame: AudioFrame): void;
}
Expand All @@ -966,9 +954,6 @@ export interface IAudioFrameObserver extends IAudioFrameObserverBase {
* @param channelId The channel ID.
* @param uid The user ID of the specified user.
* @param audioFrame The raw audio data. See AudioFrame.
*
* @returns
* Without practical meaning.
*/
onPlaybackAudioFrameBeforeMixing?(
channelId: string,
Expand Down Expand Up @@ -1015,9 +1000,6 @@ export interface IAudioSpectrumObserver {
* After successfully calling registerAudioSpectrumObserver to implement the onLocalAudioSpectrum callback in IAudioSpectrumObserver and calling enableAudioSpectrumMonitor to enable audio spectrum monitoring, the SDK will trigger the callback as the time interval you set to report the received remote audio data spectrum.
*
* @param data The audio spectrum data of the local user. See AudioSpectrumData.
*
* @returns
* Whether the spectrum data is received: true : Spectrum data is received. false : No spectrum data is received.
*/
onLocalAudioSpectrum?(data: AudioSpectrumData): void;

Expand All @@ -1028,9 +1010,6 @@ export interface IAudioSpectrumObserver {
*
* @param spectrums The audio spectrum information of the remote user, see UserAudioSpectrumInfo. The number of arrays is the number of remote users monitored by the SDK. If the array is null, it means that no audio spectrum of remote users is detected.
* @param spectrumNumber The number of remote users.
*
* @returns
* Whether the spectrum data is received: true : Spectrum data is received. false : No spectrum data is received.
*/
onRemoteAudioSpectrum?(
spectrums: UserAudioSpectrumInfo[],
Expand All @@ -1051,9 +1030,6 @@ export interface IVideoEncodedFrameObserver {
* @param imageBuffer The encoded video image buffer.
* @param length The data length of the video image.
* @param videoEncodedFrameInfo For the information of the encoded video frame, see EncodedVideoFrameInfo.
*
* @returns
* Without practical meaning.
*/
onEncodedVideoFrameReceived?(
uid: number,
Expand Down Expand Up @@ -1092,10 +1068,6 @@ export interface IVideoFrameObserver {
* @param videoFrame The video frame. See VideoFrame. The default value of the video frame data format obtained through this callback is as follows:
* Android: I420 or RGB (GLES20.GL_TEXTURE_2D)
* iOS: I420 or CVPixelBufferRef
*
* @returns
* When the video processing mode is ProcessModeReadOnly : true : Reserved for future use. false : Reserved for future use.
* When the video processing mode is ProcessModeReadWrite : true : Sets the SDK to receive the video frame. false : Sets the SDK to discard the video frame.
*/
onCaptureVideoFrame?(
sourceType: VideoSourceType,
Expand All @@ -1112,10 +1084,6 @@ export interface IVideoFrameObserver {
* @param videoFrame The video frame. See VideoFrame. The default value of the video frame data format obtained through this callback is as follows:
* Android: I420 or RGB (GLES20.GL_TEXTURE_2D)
* iOS: I420 or CVPixelBufferRef
*
* @returns
* When the video processing mode is ProcessModeReadOnly : true : Reserved for future use. false : Reserved for future use.
* When the video processing mode is ProcessModeReadWrite : true : Sets the SDK to receive the video frame. false : Sets the SDK to discard the video frame.
*/
onPreEncodeVideoFrame?(
sourceType: VideoSourceType,
Expand All @@ -1138,10 +1106,6 @@ export interface IVideoFrameObserver {
* @param videoFrame The video frame. See VideoFrame. The default value of the video frame data format obtained through this callback is as follows:
* Android: I420 or RGB (GLES20.GL_TEXTURE_2D)
* iOS: I420 or CVPixelBufferRef
*
* @returns
* When the video processing mode is ProcessModeReadOnly : true : Reserved for future use. false : Reserved for future use.
* When the video processing mode is ProcessModeReadWrite : true : Sets the SDK to receive the video frame. false : Sets the SDK to discard the video frame.
*/
onRenderVideoFrame?(
channelId: string,
Expand Down
2 changes: 1 addition & 1 deletion src/IAgoraLog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export enum LogFilterType {
*/
export class LogConfig {
/**
* The complete path of the log files. Ensure that the path for the log file exists and is writable. You can use this parameter to rename the log files. The default path is:
* The complete path of the log files. Agora recommends using the default log directory. If you need to modify the default directory, ensure that the directory you specify exists and is writable. The default log directory is:
* Android: /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log.
* iOS: App Sandbox/Library/caches/agorasdk.log.
*/
Expand Down
Loading

0 comments on commit 9afe012

Please sign in to comment.