From ba030fbab8a16b18261f97fe8f19ec2137141d97 Mon Sep 17 00:00:00 2001 From: Arthas <15215604969@163.com> Date: Fri, 14 Apr 2023 04:14:21 +0800 Subject: [PATCH] [AUTO] Generate code by terra (#980) Co-authored-by: LichKing-2234 --- ts/Private/AgoraBase.ts | 42 ++++++++++--------- ts/Private/AgoraMediaBase.ts | 5 ++- ts/Private/IAgoraMediaEngine.ts | 3 +- ts/Private/IAgoraMediaPlayer.ts | 1 + ts/Private/IAgoraMediaPlayerSource.ts | 1 + ts/Private/IAgoraMediaRecorder.ts | 1 + ts/Private/IAgoraMusicContentCenter.ts | 1 + ts/Private/IAgoraRtcEngine.ts | 25 +++++------ ts/Private/IAgoraRtcEngineEx.ts | 1 + ts/Private/IAgoraSpatialAudio.ts | 1 + ts/Private/IAudioDeviceManager.ts | 3 +- ts/Private/impl/IAgoraMediaEngineImpl.ts | 4 +- ts/Private/impl/IAgoraMediaPlayerImpl.ts | 4 +- ts/Private/impl/IAgoraMediaRecorderImpl.ts | 4 +- .../impl/IAgoraMusicContentCenterImpl.ts | 4 +- ts/Private/impl/IAgoraRtcEngineExImpl.ts | 4 +- ts/Private/impl/IAgoraRtcEngineImpl.ts | 4 +- ts/Private/impl/IAgoraSpatialAudioImpl.ts | 4 +- ts/Private/impl/IAudioDeviceManagerImpl.ts | 4 +- 19 files changed, 72 insertions(+), 44 deletions(-) diff --git a/ts/Private/AgoraBase.ts b/ts/Private/AgoraBase.ts index f69cb630c..86b18489e 100644 --- a/ts/Private/AgoraBase.ts +++ b/ts/Private/AgoraBase.ts @@ -1,5 +1,6 @@ import './extension/AgoraBaseExtension'; import { RenderModeType, VideoSourceType } from './AgoraMediaBase'; + /** * The channel profile. */ @@ -1241,11 +1242,11 @@ export class CodecCapInfo { /** * @ignore */ - codec_type?: VideoCodecType; + codecType?: VideoCodecType; /** * @ignore */ - codec_cap_mask?: number; + codecCapMask?: number; } /** @@ -2241,11 +2242,11 @@ export enum RemoteVideoDownscaleLevel { */ export class AudioVolumeInfo { /** - * The user ID.In the local user's callback, uid is 0.In the remote users' callback, uid is the user ID of a remote user whose instantaneous volume is the highest. + * The user ID.In the local user's callback, uid = 0.In the remote users' callback, uid is the user ID of a remote user whose instantaneous volume is one of the three highest. */ uid?: number; /** - * The volume of the user. The value ranges between 0 (the lowest volume) and 255 (the highest volume). If the local user enables audio capturing and calls muteLocalAudioStream and set it as true to mute, the value of volume indicates the volume of locally captured audio signal. + * The volume of the user. The value ranges between 0 (lowest volume) and 255 (highest volume). */ volume?: number; /** @@ -2389,7 +2390,7 @@ export enum RtmpStreamPublishState { */ RtmpStreamPublishStateIdle = 0, /** - * 1: The streaming server and CDN server are being connected. + * 1: The SDK is connecting to Agora's streaming server and the CDN server. */ RtmpStreamPublishStateConnecting = 1, /** @@ -2397,15 +2398,16 @@ export enum RtmpStreamPublishState { */ RtmpStreamPublishStateRunning = 2, /** - * 3: The RTMP or RTMPS streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP or RTMPS streaming and returns this state.If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning(2) returns.If the streaming does not resume within 60 seconds or server errors occur, RtmpStreamPublishStateFailure(4) returns. If you feel that 60 seconds is too long, you can also actively try to reconnect. + * 3: The RTMP or RTMPS streaming is recovering. When exceptions occur to the CDN, or the streaming is interrupted, the SDK tries to resume RTMP or RTMPS streaming and returns this state.If the SDK successfully resumes the streaming, RtmpStreamPublishStateRunning(2) returns. + * If the streaming does not resume within 60 seconds or server errors occur, RtmpStreamPublishStateFailure(4) returns. You can also reconnect to the server by calling the stopRtmpStream method. */ RtmpStreamPublishStateRecovering = 3, /** - * 4: The RTMP or RTMPS streaming fails. After a failure, you can troubleshoot the cause of the error through the returned error code. + * 4: The RTMP or RTMPS streaming fails. See the errCode parameter for the detailed error information. */ RtmpStreamPublishStateFailure = 4, /** - * 5: The SDK is disconnecting from the Agora streaming server and CDN. When you call stopRtmpStream to stop the Media Push normally, the SDK reports the Media Push state as RtmpStreamPublishStateDisconnecting and RtmpStreamPublishStateIdle in sequence. + * 5: The SDK is disconnecting from the Agora streaming server and CDN. When you call stopRtmpStream to stop the streaming normally, the SDK reports the streaming state as RtmpStreamPublishStateDisconnecting and RtmpStreamPublishStateIdle in sequence. */ RtmpStreamPublishStateDisconnecting = 5, } @@ -2415,7 +2417,7 @@ export enum RtmpStreamPublishState { */ export enum RtmpStreamPublishErrorType { /** - * 0: The RTMP or RTMPS streaming has not started or has ended. + * 0: The RTMP or RTMPS streaming publishes successfully. */ RtmpStreamPublishErrorOk = 0, /** @@ -2427,11 +2429,11 @@ export enum RtmpStreamPublishErrorType { */ RtmpStreamPublishErrorEncryptedStreamNotAllowed = 2, /** - * 3: Timeout for the RTMP or RTMPS streaming. + * 3: Timeout for the RTMP or RTMPS streaming. Try to publish the streaming again. */ RtmpStreamPublishErrorConnectionTimeout = 3, /** - * 4: An error occurs in Agora's streaming server. + * 4: An error occurs in Agora's streaming server. Try to publish the streaming again. */ RtmpStreamPublishErrorInternalServerError = 4, /** @@ -2439,7 +2441,7 @@ export enum RtmpStreamPublishErrorType { */ RtmpStreamPublishErrorRtmpServerError = 5, /** - * 6: The RTMP or RTMPS streaming publishes too frequently. + * 6: The RTMP or RTMPS streaming publishing requests are too frequent. */ RtmpStreamPublishErrorTooOften = 6, /** @@ -2459,11 +2461,11 @@ export enum RtmpStreamPublishErrorType { */ RtmpStreamPublishErrorFormatNotSupported = 10, /** - * 11: The user role is not host, so the user cannot use the CDN live streaming function. Check your application code logic. + * 11: The user role is not host, so the user cannot use the CDN live streaming function. Check your app code logic. */ RtmpStreamPublishErrorNotBroadcaster = 11, /** - * 13: The updateRtmpTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic. + * 13: The updateRtmpTranscoding or setLiveTranscoding method is called to update the transcoding configuration in a scenario where there is streaming without transcoding. Check your application code logic. */ RtmpStreamPublishErrorTranscodingNoMixStream = 13, /** @@ -2475,25 +2477,25 @@ export enum RtmpStreamPublishErrorType { */ RtmpStreamPublishErrorInvalidAppid = 15, /** - * 16: Your project does not have permission to use streaming services. Refer to Media Push to enable the Media Push permission. + * @ignore */ RtmpStreamPublishErrorInvalidPrivilege = 16, /** - * 100: The streaming has been stopped normally. After you stop the media push, the SDK returns this value. + * 100: The streaming has been stopped normally. After you call stopRtmpStream to stop streaming, the SDK returns this value. */ RtmpStreamUnpublishErrorOk = 100, } /** - * Events during the Media Push. + * Events during the media push. */ export enum RtmpStreamingEvent { /** - * 1: An error occurs when you add a background image or a watermark image in the Media Push. + * 1: An error occurs when you add a background image or a watermark image in the media push. */ RtmpStreamingEventFailedLoadImage = 1, /** - * 2: The streaming URL is already being used for Media Push. If you want to start new streaming, use a new streaming URL. + * 2: The streaming URL is already being used for CDN live streaming. If you want to start new streaming, use a new streaming URL. */ RtmpStreamingEventUrlAlreadyInUse = 2, /** @@ -3155,7 +3157,7 @@ export class VideoCanvas { */ sourceType?: VideoSourceType; /** - * The ID of the media player. You can get the media player ID by calling getMediaPlayerId . + * The ID of the media player. You can get the Device ID by calling getMediaPlayerId . */ mediaPlayerId?: number; /** diff --git a/ts/Private/AgoraMediaBase.ts b/ts/Private/AgoraMediaBase.ts index 9f8762f57..502067a73 100644 --- a/ts/Private/AgoraMediaBase.ts +++ b/ts/Private/AgoraMediaBase.ts @@ -1,5 +1,6 @@ import './extension/AgoraMediaBaseExtension'; import { EncodedVideoFrameInfo } from './AgoraBase'; + /** * The capture type of the custom video source. */ @@ -910,7 +911,7 @@ export class UserAudioSpectrumInfo { export interface IAudioSpectrumObserver { /** * Gets the statistics of a local audio spectrum. - * 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. + * After successfully calling registerAudioSpectrumObserver to implement the onLocalAudioSpectrumcallback 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 . * @@ -979,7 +980,7 @@ export enum VideoFrameProcessMode { export interface IVideoFrameObserver { /** * Occurs each time the SDK receives a video frame captured by the local camera. - * After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. In this callback, you can get the video data captured by the local camera. You can then pre-process the data according to your scenarios.Once the pre-processing is complete, you can directly modify videoFrame in this callback, and set the return value to true to send the modified video data to the SDK.The video data that this callback gets has not been pre-processed, and is not watermarked, cropped, rotated or beautified.If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel. + * After you successfully register the video frame observer, the SDK triggers this callback each time it receives a video frame. In this callback, you can get the video data captured by the local camera. You can then pre-process the data according to your scenarios.After pre-processing, you can send the processed video data back to the SDK through this callback.The video data that this callback gets has not been pre-processed, and is not watermarked, cropped, rotated or beautified.If the video data type you get is RGBA, the SDK does not support processing the data of the alpha channel. * * @param videoFrame The video frame. See VideoFrame .The default value of the video frame data format obtained through this callback is as follows:macOS: YUV 420Windows: YUV 420 * diff --git a/ts/Private/IAgoraMediaEngine.ts b/ts/Private/IAgoraMediaEngine.ts index c951584be..957daf797 100644 --- a/ts/Private/IAgoraMediaEngine.ts +++ b/ts/Private/IAgoraMediaEngine.ts @@ -13,6 +13,7 @@ import { IVideoEncodedFrameObserver, IVideoFrameObserver, } from './AgoraMediaBase'; + /** * The channel mode. */ @@ -126,7 +127,7 @@ export abstract class IMediaEngine { * Call this method before joining a channel. * * @param enabled Whether to enable the external audio source:true: Enable the external audio source.false: (Default) Disable the external audio source. - * @param sampleRate The sample rate (Hz) of the external audio source which can be set as 8000, 16000, 32000, 44100, or 48000. + * @param sampleRate The sample rate (Hz) of the external audio which can be set as 8000, 16000, 32000, 44100, or 48000. * @param channels The number of channels of the external audio source, which can be set as 1 (Mono) or 2 (Stereo). * @param sourceNumber The number of external audio sources. The value of this parameter should be larger than 0. The SDK creates a corresponding number of custom audio tracks based on this parameter value and names the audio tracks starting from 0. In ChannelMediaOptions , you can set publishCustomAudioSourceId to the audio track ID you want to publish. * @param localPlayback Whether to play the external audio source:true: Play the external audio source.false: (Default) Do not play the external source. diff --git a/ts/Private/IAgoraMediaPlayer.ts b/ts/Private/IAgoraMediaPlayer.ts index e64f279b6..003da18bf 100644 --- a/ts/Private/IAgoraMediaPlayer.ts +++ b/ts/Private/IAgoraMediaPlayer.ts @@ -14,6 +14,7 @@ import { PlayerStreamInfo, } from './AgoraMediaPlayerTypes'; import { IMediaPlayerSourceObserver } from './IAgoraMediaPlayerSource'; + /** * This class provides media player functions and supports multiple instances. */ diff --git a/ts/Private/IAgoraMediaPlayerSource.ts b/ts/Private/IAgoraMediaPlayerSource.ts index 9a021c07c..b6393ed17 100644 --- a/ts/Private/IAgoraMediaPlayerSource.ts +++ b/ts/Private/IAgoraMediaPlayerSource.ts @@ -7,6 +7,7 @@ import { PlayerUpdatedInfo, SrcInfo, } from './AgoraMediaPlayerTypes'; + /** * Provides callbacks for media players. */ diff --git a/ts/Private/IAgoraMediaRecorder.ts b/ts/Private/IAgoraMediaRecorder.ts index 7f349796d..c68014a65 100644 --- a/ts/Private/IAgoraMediaRecorder.ts +++ b/ts/Private/IAgoraMediaRecorder.ts @@ -3,6 +3,7 @@ import { IMediaRecorderObserver, MediaRecorderConfiguration, } from './AgoraMediaBase'; + /** * Used for recording audio and video on the client. * IMediaRecorder can record the following: diff --git a/ts/Private/IAgoraMusicContentCenter.ts b/ts/Private/IAgoraMusicContentCenter.ts index 4b17e5a26..7dad49144 100644 --- a/ts/Private/IAgoraMusicContentCenter.ts +++ b/ts/Private/IAgoraMusicContentCenter.ts @@ -1,5 +1,6 @@ import './extension/IAgoraMusicContentCenterExtension'; import { IMediaPlayer } from './IAgoraMediaPlayer'; + /** * @ignore */ diff --git a/ts/Private/IAgoraRtcEngine.ts b/ts/Private/IAgoraRtcEngine.ts index c8bd2dab4..019a96782 100644 --- a/ts/Private/IAgoraRtcEngine.ts +++ b/ts/Private/IAgoraRtcEngine.ts @@ -118,6 +118,7 @@ import { import { RtcConnection } from './IAgoraRtcEngineEx'; import { ILocalSpatialAudioEngine } from './IAgoraSpatialAudio'; import { IAudioDeviceManager } from './IAudioDeviceManager'; + /** * Media device types. */ @@ -1038,7 +1039,7 @@ export class ChannelMediaOptions { */ publishCameraTrack?: boolean; /** - * Whether to publish the video captured by the second camera:true: Publish the video captured by the second camera.false: (Default) Do not publish the video captured by the second camera. + * @ignore */ publishSecondaryCameraTrack?: boolean; /** @@ -1046,7 +1047,7 @@ export class ChannelMediaOptions { */ publishMicrophoneTrack?: boolean; /** - * @ignore + * Whether to publish the video captured from the screen:true: Publish the video captured from the screen.false: (Default) Do not publish the video captured from the screen.This parameter applies to Android and iOS only. */ publishScreenCaptureVideo?: boolean; /** @@ -1366,10 +1367,10 @@ export interface IRtcEngineEventHandler { /** * Reports the volume information of users. - * By default, this callback is disabled. You can enable it by calling enableAudioVolumeIndication . Once this callback is enabled and users send streams in the channel, the SDK triggers the onAudioVolumeIndication callback according to the time interval set in enableAudioVolumeIndication. The SDK triggers two independent onAudioVolumeIndication callbacks simultaneously, which separately report the volume information of the local user who sends a stream and the remote users (up to three) whose instantaneous volume is the highest.Once this callback is enabled, if the local user calls the muteLocalAudioStream method to mute, the SDK continues to report the volume indication of the local user.If a remote user whose volume is one of the three highest in the channel stops publishing the audio stream for 20 seconds, the callback excludes this user's information; if all remote users stop publishing audio streams for 20 seconds, the SDK stops triggering the callback for remote users. + * By default, this callback is disabled. You can enable it by calling enableAudioVolumeIndication . Once this callback is enabled and users send streams in the channel, the SDK triggers the onAudioVolumeIndication callback according to the time interval set in enableAudioVolumeIndication. The SDK triggers two independent onAudioVolumeIndication callbacks simultaneously, which separately report the volume information of the local user who sends a stream and the remote users (up to three) whose instantaneous volume is the highest.Once this callback is enabled, if the local user calls the muteLocalAudioStream method for muting, the SDK continues to report the volume indication of the local user. In the callbacks triggered, the volume information about the local user is 0 If a remote user whose volume is one of the three highest in the channel stops publishing the audio stream for 20 seconds, the callback excludes this user's information; if all remote users stop publishing audio streams for 20 seconds, the SDK stops triggering the callback for remote users. * * @param connection The connection information. See RtcConnection . - * @param speakers The volume information of the users. See AudioVolumeInfo . An empty speakers array in the callback indicates that no remote user is in the channel or is sending a stream. + * @param speakers The volume information of the users, see AudioVolumeInfo . An empty speakers array in the callback indicates that no remote user is in the channel or is sending a stream. * @param speakerNumber The total number of users.In the callback for the local user, if the local user is sending streams, the value of speakerNumber is 1.In the callback for remote users, the value range of speakerNumber is [0,3]. If the number of remote users who send streams is greater than or equal to three, the value of speakerNumber is 3. * @param totalVolume The volume of the speaker. The value range is [0,255].In the callback for the local user, totalVolume is the volume of the local user who sends a stream.In the callback for remote users, totalVolume is the sum of the volume of all remote users (up to three) whose instantaneous volume is the highest. */ @@ -2048,12 +2049,12 @@ export interface IRtcEngineEventHandler { ): void; /** - * Occurs when the state of Media Push changes. - * When the state of Media Push changes, the SDK triggers this callback and reports the URL address and the current state of the Media Push. This callback indicates the state of the Media Push. When exceptions occur, you can troubleshoot issues by referring to the detailed error descriptions in the error code parameter. + * Occurs when the media push state changes. + * When the media push state changes, the SDK triggers this callback and reports the URL address and the current state of the media push. This callback indicates the state of the media push. When exceptions occur, you can troubleshoot issues by referring to the detailed error descriptions in the error code parameter. * - * @param url The URL address where the state of the Media Push changes. - * @param state The current state of the Media Push. See RtmpStreamPublishState . - * @param errCode The detailed error information for the Media Push. See RtmpStreamPublishErrorType . + * @param url The URL address where the state of the media push changes. + * @param state The current state of the media push. See RtmpStreamPublishState . + * @param errCode The detailed error information for the media push. See RtmpStreamPublishErrorType . */ onRtmpStreamingStateChanged?( url: string, @@ -2062,10 +2063,10 @@ export interface IRtcEngineEventHandler { ): void; /** - * Reports events during the Media Push. + * Reports events during the media push. * - * @param url The URL for Media Push. - * @param eventCode The event code of Media Push. RtmpStreamingEvent + * @param url The URL of media push. + * @param eventCode The event code of media push. See RtmpStreamingEvent . */ onRtmpStreamingEvent?(url: string, eventCode: RtmpStreamingEvent): void; diff --git a/ts/Private/IAgoraRtcEngineEx.ts b/ts/Private/IAgoraRtcEngineEx.ts index 8f8056727..757f7b915 100644 --- a/ts/Private/IAgoraRtcEngineEx.ts +++ b/ts/Private/IAgoraRtcEngineEx.ts @@ -23,6 +23,7 @@ import { LeaveChannelOptions, StreamFallbackOptions, } from './IAgoraRtcEngine'; + /** * Contains connection information. */ diff --git a/ts/Private/IAgoraSpatialAudio.ts b/ts/Private/IAgoraSpatialAudio.ts index 8f827ae88..85264c349 100644 --- a/ts/Private/IAgoraSpatialAudio.ts +++ b/ts/Private/IAgoraSpatialAudio.ts @@ -1,5 +1,6 @@ import './extension/IAgoraSpatialAudioExtension'; import { RtcConnection } from './IAgoraRtcEngineEx'; + /** * The spatial position of the remote user or the media player. */ diff --git a/ts/Private/IAudioDeviceManager.ts b/ts/Private/IAudioDeviceManager.ts index d6afd9529..6966c14a3 100644 --- a/ts/Private/IAudioDeviceManager.ts +++ b/ts/Private/IAudioDeviceManager.ts @@ -1,5 +1,6 @@ import './extension/IAudioDeviceManagerExtension'; import { AudioDeviceInfo } from './IAgoraRtcEngine'; + /** * The maximum length of the device ID. */ @@ -77,7 +78,7 @@ export abstract class IAudioDeviceManager { * Sets the audio capture device. * You can call this method to change the audio route currently being used, but this does not change the default audio route. For example, if the default audio route is microphone, you call this method to set the audio route as bluetooth earphones before joinging a channel and then start a device test, the SDK conducts device test on the bluetooth earphones. After the device test is completed and you join a channel, the SDK still uses the microphone for audio capturing. * - * @param deviceId The ID of the audio capture device. You can get the media player ID by calling enumerateRecordingDevices . Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType . + * @param deviceId The ID of the audio capture device. You can get the Device ID by calling enumerateRecordingDevices . Connecting or disconnecting the audio device does not change the value of deviceId.The maximum length is MaxDeviceIdLengthType . * * @returns * 0: Success.< 0: Failure. diff --git a/ts/Private/impl/IAgoraMediaEngineImpl.ts b/ts/Private/impl/IAgoraMediaEngineImpl.ts index bf09fd922..db4189c04 100644 --- a/ts/Private/impl/IAgoraMediaEngineImpl.ts +++ b/ts/Private/impl/IAgoraMediaEngineImpl.ts @@ -13,7 +13,7 @@ import { IVideoFrameObserver, } from '../AgoraMediaBase'; import { IMediaEngine } from '../IAgoraMediaEngine'; -import { callIrisApi } from '../internal/IrisApiEngine'; + // @ts-ignore export class IMediaEngineImpl implements IMediaEngine { registerAudioFrameObserver(observer: IAudioFrameObserver): number { @@ -426,3 +426,5 @@ export class IMediaEngineImpl implements IMediaEngine { return 'MediaEngine_unregisterVideoEncodedFrameObserver'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraMediaPlayerImpl.ts b/ts/Private/impl/IAgoraMediaPlayerImpl.ts index c6d6f7c3d..c52bf3c35 100644 --- a/ts/Private/impl/IAgoraMediaPlayerImpl.ts +++ b/ts/Private/impl/IAgoraMediaPlayerImpl.ts @@ -17,7 +17,7 @@ import { IMediaPlayerVideoFrameObserver, } from '../IAgoraMediaPlayer'; import { IMediaPlayerSourceObserver } from '../IAgoraMediaPlayerSource'; -import { callIrisApi } from '../internal/IrisApiEngine'; + // @ts-ignore export class IMediaPlayerImpl implements IMediaPlayer { getMediaPlayerId(): number { @@ -1136,3 +1136,5 @@ export function processIMediaPlayerVideoFrameObserver( break; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraMediaRecorderImpl.ts b/ts/Private/impl/IAgoraMediaRecorderImpl.ts index 57192036d..e93fc7d70 100644 --- a/ts/Private/impl/IAgoraMediaRecorderImpl.ts +++ b/ts/Private/impl/IAgoraMediaRecorderImpl.ts @@ -3,7 +3,7 @@ import { MediaRecorderConfiguration, } from '../AgoraMediaBase'; import { IMediaRecorder } from '../IAgoraMediaRecorder'; -import { callIrisApi } from '../internal/IrisApiEngine'; + // @ts-ignore export class IMediaRecorderImpl implements IMediaRecorder { setMediaRecorderObserver(callback: IMediaRecorderObserver): number { @@ -55,3 +55,5 @@ export class IMediaRecorderImpl implements IMediaRecorder { return 'MediaRecorder_stopRecording'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraMusicContentCenterImpl.ts b/ts/Private/impl/IAgoraMusicContentCenterImpl.ts index d9fe4e3be..28770a452 100644 --- a/ts/Private/impl/IAgoraMusicContentCenterImpl.ts +++ b/ts/Private/impl/IAgoraMusicContentCenterImpl.ts @@ -9,9 +9,9 @@ import { MusicCollection, MusicContentCenterConfiguration, } from '../IAgoraMusicContentCenter'; -import { callIrisApi } from '../internal/IrisApiEngine'; import { IMediaPlayerImpl } from './IAgoraMediaPlayerImpl'; + // @ts-ignore export class MusicChartCollectionImpl implements MusicChartCollection { getCount(): number { @@ -470,3 +470,5 @@ export class IMusicContentCenterImpl implements IMusicContentCenter { return 'MusicContentCenter_getLyric'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraRtcEngineExImpl.ts b/ts/Private/impl/IAgoraRtcEngineExImpl.ts index 6aa058cf1..641b6d511 100644 --- a/ts/Private/impl/IAgoraRtcEngineExImpl.ts +++ b/ts/Private/impl/IAgoraRtcEngineExImpl.ts @@ -22,9 +22,9 @@ import { StreamFallbackOptions, } from '../IAgoraRtcEngine'; import { IRtcEngineEx, RtcConnection } from '../IAgoraRtcEngineEx'; -import { callIrisApi } from '../internal/IrisApiEngine'; import { IRtcEngineImpl } from './IAgoraRtcEngineImpl'; + // @ts-ignore export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx { joinChannelEx( @@ -1514,3 +1514,5 @@ export class IRtcEngineExImpl extends IRtcEngineImpl implements IRtcEngineEx { return 'RtcEngineEx_startMediaRenderingTracingEx'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraRtcEngineImpl.ts b/ts/Private/impl/IAgoraRtcEngineImpl.ts index 95445bf2d..e69036540 100644 --- a/ts/Private/impl/IAgoraRtcEngineImpl.ts +++ b/ts/Private/impl/IAgoraRtcEngineImpl.ts @@ -94,7 +94,7 @@ import { import { RtcConnection } from '../IAgoraRtcEngineEx'; import { ILocalSpatialAudioEngine } from '../IAgoraSpatialAudio'; import { IAudioDeviceManager } from '../IAudioDeviceManager'; -import { callIrisApi } from '../internal/IrisApiEngine'; + export function processIRtcEngineEventHandler( handler: IRtcEngineEventHandler, event: string, @@ -6782,3 +6782,5 @@ export class IRtcEngineImpl implements IRtcEngine { return 'RtcEngine_getNativeHandle'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAgoraSpatialAudioImpl.ts b/ts/Private/impl/IAgoraSpatialAudioImpl.ts index b3d961cd7..99a8d500d 100644 --- a/ts/Private/impl/IAgoraSpatialAudioImpl.ts +++ b/ts/Private/impl/IAgoraSpatialAudioImpl.ts @@ -5,7 +5,7 @@ import { RemoteVoicePositionInfo, SpatialAudioZone, } from '../IAgoraSpatialAudio'; -import { callIrisApi } from '../internal/IrisApiEngine'; + // @ts-ignore export class IBaseSpatialAudioEngineImpl implements IBaseSpatialAudioEngine { release(): void { @@ -498,3 +498,5 @@ export class ILocalSpatialAudioEngineImpl return 'LocalSpatialAudioEngine_setRemoteAudioAttenuation'; } } + +import { callIrisApi } from '../internal/IrisApiEngine'; diff --git a/ts/Private/impl/IAudioDeviceManagerImpl.ts b/ts/Private/impl/IAudioDeviceManagerImpl.ts index 0663d3ec5..215fbe992 100644 --- a/ts/Private/impl/IAudioDeviceManagerImpl.ts +++ b/ts/Private/impl/IAudioDeviceManagerImpl.ts @@ -1,6 +1,6 @@ import { AudioDeviceInfo } from '../IAgoraRtcEngine'; import { IAudioDeviceManager } from '../IAudioDeviceManager'; -import { callIrisApi } from '../internal/IrisApiEngine'; + // @ts-ignore export class IAudioDeviceManagerImpl implements IAudioDeviceManager { enumeratePlaybackDevices(): AudioDeviceInfo[] { @@ -439,3 +439,5 @@ export class IAudioDeviceManagerImpl implements IAudioDeviceManager { return 'AudioDeviceManager_getRecordingDefaultDevice'; } } + +import { callIrisApi } from '../internal/IrisApiEngine';