public abstract int pushExternalVideoFrameById(AgoraVideoFrame frame, int videoTrackId);
-
+ public abstract pushExternalVideoFrameById(frame: VideoFrame, videoTrackId: number): number;
- (BOOL)pushExternalVideoFrame:(AgoraVideoFrame * _Nonnull)frame videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalVideoFrame(_:videoTrackId:));
virtual int pushVideoFrame(base::ExternalVideoFrame* frame, unsigned int videoTrackId = 0) = 0;
abstract pushVideoFrame(
diff --git a/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita b/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita
index 69c5203841b..7c21b37c9c7 100644
--- a/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita
+++ b/dita/RTC-NG/API/api_imediaengine_registeraudioframeobserver.dita
@@ -14,7 +14,7 @@
public abstract int registerAudioFrameObserver(IAudioFrameObserver observer);
- public abstract registerAudioFrameObserver(observer:IAudioFrameObserver):number;
+
- (BOOL)setAudioFrameDelegate:(id<AgoraAudioFrameDelegate> _Nullable)delegate;
virtual int registerAudioFrameObserver(IAudioFrameObserver* observer) = 0;
abstract registerAudioFrameObserver(observer: IAudioFrameObserver): number;
diff --git a/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita b/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita
index d766b25831d..a0b66e478f1 100644
--- a/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita
+++ b/dita/RTC-NG/API/api_imediaengine_registervideoframeobserver.dita
@@ -14,7 +14,7 @@
public abstract int registerVideoFrameObserver(IVideoFrameObserver observer);
- public abstract registerVideoFrameObserver(observer:IVideoFrameObserver):number;
+
- (BOOL)setVideoFrameDelegate:(id<AgoraVideoFrameDelegate> _Nullable)delegate;
virtual int registerVideoFrameObserver(IVideoFrameObserver* observer) = 0;
abstract registerVideoFrameObserver(observer: IVideoFrameObserver): number;
diff --git a/dita/RTC-NG/API/api_imediaplayer_adjustplayoutvolume.dita b/dita/RTC-NG/API/api_imediaplayer_adjustplayoutvolume.dita
index 392dce45ff9..326a3ff31a6 100644
--- a/dita/RTC-NG/API/api_imediaplayer_adjustplayoutvolume.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_adjustplayoutvolume.dita
@@ -14,7 +14,7 @@
int adjustPlayoutVolume(int volume);
-
+ public abstract adjustPlayoutVolume(vol: number): number;
- (int)adjustPlayoutVolume:(int)volume;
virtual int adjustPlayoutVolume(int volume) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_adjustpublishsignalvolume.dita b/dita/RTC-NG/API/api_imediaplayer_adjustpublishsignalvolume.dita
index 3ff415f1dde..50863ab0041 100644
--- a/dita/RTC-NG/API/api_imediaplayer_adjustpublishsignalvolume.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_adjustpublishsignalvolume.dita
@@ -14,7 +14,7 @@
int adjustPublishSignalVolume(int volume);
-
+ public abstract adjustPublishSignalVolume(volume:number):number;
- (int)adjustPublishSignalVolume:(int)volume;
virtual int adjustPublishSignalVolume(int volume) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getduration.dita b/dita/RTC-NG/API/api_imediaplayer_getduration.dita
index 4692dcc6233..f2e51170786 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getduration.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getduration.dita
@@ -14,7 +14,7 @@
long getDuration();
-
+ public abstract getDuration():number;
- (NSInteger)getDuration;
virtual int getDuration(int64_t& duration) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getmediaplayerid.dita b/dita/RTC-NG/API/api_imediaplayer_getmediaplayerid.dita
index 53912509d32..c20acfe0ad2 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getmediaplayerid.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getmediaplayerid.dita
@@ -14,7 +14,7 @@
int getMediaPlayerId();
-
+ public abstract getMediaPlayerId():number;
- (int)getMediaPlayerId;
virtual int getMediaPlayerId() const = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getmute.dita b/dita/RTC-NG/API/api_imediaplayer_getmute.dita
index ffe3fe2ad55..279c9d8f8e3 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getmute.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getmute.dita
@@ -14,7 +14,7 @@
boolean getMute();
-
+ public abstract getMute(): boolean;
- (bool)getMute;
virtual int getMute(bool& mute) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getplayoutvolume.dita b/dita/RTC-NG/API/api_imediaplayer_getplayoutvolume.dita
index 339a2f8b5c3..c6fe39f2dd3 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getplayoutvolume.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getplayoutvolume.dita
@@ -14,7 +14,7 @@
int getPlayoutVolume();
-
+ public abstract getPlayoutVolume():number
- (int)getPlayoutVolume;
virtual int getPlayoutVolume(int& volume) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getplayposition.dita b/dita/RTC-NG/API/api_imediaplayer_getplayposition.dita
index d1e754673d5..97dc7a627a2 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getplayposition.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getplayposition.dita
@@ -14,7 +14,7 @@
long getPlayPosition();
-
+ public abstract getPlayPosition():number;
- (NSInteger)getPosition;
virtual int getPlayPosition(int64_t& pos) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getplaysrc.dita b/dita/RTC-NG/API/api_imediaplayer_getplaysrc.dita
index 924d943a74a..f9945f24803 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getplaysrc.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getplaysrc.dita
@@ -14,7 +14,7 @@
String getPlaySrc();
-
+ public abstract getPlaySrc():string;
- (NSString *)getPlaySrc;
virtual const char* getPlaySrc() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getpublishsignalvolume.dita b/dita/RTC-NG/API/api_imediaplayer_getpublishsignalvolume.dita
index 2f004afa92f..09d08ade0a6 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getpublishsignalvolume.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getpublishsignalvolume.dita
@@ -14,7 +14,7 @@
int getPublishSignalVolume();
-
+ public abstract getPublishSignalVolume():number;
- (int)getPublishSignalVolume;
virtual int getPublishSignalVolume(int& volume) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getstate.dita b/dita/RTC-NG/API/api_imediaplayer_getstate.dita
index 6d9e175ec56..c9929dfd417 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getstate.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getstate.dita
@@ -14,7 +14,7 @@
Constants.MediaPlayerState getState();
-
+ public abstract getState():Constants.MediaPlayerState;
- (AgoraMediaPlayerState)getPlayerState;
virtual media::base::MEDIA_PLAYER_STATE getState() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getstreamcount.dita b/dita/RTC-NG/API/api_imediaplayer_getstreamcount.dita
index d681d146d07..0ee7fc721e2 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getstreamcount.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getstreamcount.dita
@@ -14,7 +14,7 @@
int getStreamCount();
-
+ public abstract getStreamCount():number;
- (NSInteger)getStreamCount;
virtual int getStreamCount(int64_t& count) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_getstreaminfo.dita b/dita/RTC-NG/API/api_imediaplayer_getstreaminfo.dita
index 026242bf007..26908348228 100644
--- a/dita/RTC-NG/API/api_imediaplayer_getstreaminfo.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_getstreaminfo.dita
@@ -14,7 +14,7 @@
MediaStreamInfo getStreamInfo(int index);
-
+ public abstract getStreamInfo(index:number):MediaStreamInfo|undefined;
- (AgoraMediaStreamInfo *_Nullable)getStreamByIndex:(int)index;
virtual int getStreamInfo(int64_t index, media::base::PlayerStreamInfo* info) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_mute.dita b/dita/RTC-NG/API/api_imediaplayer_mute.dita
index 3b6531dde04..16a3f8175db 100644
--- a/dita/RTC-NG/API/api_imediaplayer_mute.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_mute.dita
@@ -14,7 +14,7 @@
int mute(boolean muted);
-
+ public abstract mute(muted:boolean) : number;
- (int)mute:(bool)isMute NS_SWIFT_NAME(mute(_:));
virtual int mute(bool muted) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_open.dita b/dita/RTC-NG/API/api_imediaplayer_open.dita
index fc790258acc..01ceff4d33d 100644
--- a/dita/RTC-NG/API/api_imediaplayer_open.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_open.dita
@@ -15,7 +15,7 @@
int open(String url, long startPos);
-
+ public abstract open(url:string, startPos:number):number;
- (int)open:(NSString *)url startPos:(NSInteger)startPos;
virtual int open(const char* url, int64_t startPos) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita b/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita
index 35fdd9cc7bc..cb6d28b7458 100644
--- a/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_openwithmediasource.dita
@@ -14,7 +14,7 @@
int openWithMediaSource(MediaPlayerSource source);
-
+ public abstract openWithMediaSource(source: MediaPlayerSource) :number ;
- (int)openWithMediaSource:(AgoraMediaSource *)source;
virtual int openWithMediaSource(const media::base::MediaSource &source) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_pause.dita b/dita/RTC-NG/API/api_imediaplayer_pause.dita
index d02b4ea84cd..fa93aa84865 100644
--- a/dita/RTC-NG/API/api_imediaplayer_pause.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_pause.dita
@@ -15,7 +15,7 @@
int pause();
-
+ public abstract pause(): number;
- (int)pause;
virtual int pause() = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_play.dita b/dita/RTC-NG/API/api_imediaplayer_play.dita
index 0446ed0effb..ed45a7089f3 100644
--- a/dita/RTC-NG/API/api_imediaplayer_play.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_play.dita
@@ -14,7 +14,7 @@
int play();
-
+ public abstract play(): number;
- (int)play;
virtual int play() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_playpreloadedsrc.dita b/dita/RTC-NG/API/api_imediaplayer_playpreloadedsrc.dita
index 839c6be2ee9..91539a874a6 100644
--- a/dita/RTC-NG/API/api_imediaplayer_playpreloadedsrc.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_playpreloadedsrc.dita
@@ -15,7 +15,7 @@
int playPreloadedSrc(String src);
-
+ public abstract playPreloadedSrc(src:string):number;
- (int)playPreloadedSrc:(NSString *)src;
virtual int playPreloadedSrc(const char* src) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_preloadsrc.dita b/dita/RTC-NG/API/api_imediaplayer_preloadsrc.dita
index 4c4958f073b..875f9e91ac4 100644
--- a/dita/RTC-NG/API/api_imediaplayer_preloadsrc.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_preloadsrc.dita
@@ -15,7 +15,7 @@
int preloadSrc(String src, long startPos);
-
+ public abstract preloadSrc(src:string, startPos:number):number;
- (int)preloadSrc:(NSString *)src startPos:(int)startPos;
virtual int preloadSrc(const char* src, int64_t startPos) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita b/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita
index ac5e4972586..d2f59fa1d1f 100644
--- a/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_registeraudioframeobserver2.dita
@@ -15,7 +15,7 @@
int registerAudioFrameObserver(IMediaPlayerAudioFrameObserver audioFrameObserver, int mode);
- public abstract registerAudioFrameObserver(observer:IAudioFrameObserver):number;
+
virtual int registerAudioFrameObserver(media::IAudioPcmFrameSink* observer,
RAW_AUDIO_FRAME_OP_MODE_TYPE mode) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita b/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita
index 9a41cbda07d..be91392024b 100644
--- a/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_registerplayersourceobserver.dita
@@ -15,7 +15,7 @@
int registerPlayerObserver(IMediaPlayerObserver playerObserver);
-
+ public abstract registerPlayerObserver(playerObserver:IMediaPlayerObserver);
virtual int registerPlayerSourceObserver(IMediaPlayerSourceObserver* observer) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita b/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita
index 9a35ed36cb5..ab29f1f97b9 100644
--- a/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_registervideoframeobserver.dita
@@ -14,7 +14,7 @@
int registerVideoFrameObserver(IMediaPlayerVideoFrameObserver videoFrameObserver);
- public abstract registerVideoFrameObserver(observer:IVideoFrameObserver):number;
+
virtual int registerVideoFrameObserver(media::base::IVideoFrameObserver* observer) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_resume.dita b/dita/RTC-NG/API/api_imediaplayer_resume.dita
index fb514f6c4a9..81dac38a8df 100644
--- a/dita/RTC-NG/API/api_imediaplayer_resume.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_resume.dita
@@ -14,7 +14,7 @@
int resume();
-
+ public abstract resume(): number;
- (int)resume;
virtual int resume() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_seek.dita b/dita/RTC-NG/API/api_imediaplayer_seek.dita
index dbff9f728e5..e2ce0898f7a 100644
--- a/dita/RTC-NG/API/api_imediaplayer_seek.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_seek.dita
@@ -15,7 +15,7 @@
int seek(long newPos);
-
+ public abstract seek(newPos: number): number;
- (void)seekToPosition:(NSInteger)position;
virtual int seek(int64_t newPos) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_selectaudiotrack.dita b/dita/RTC-NG/API/api_imediaplayer_selectaudiotrack.dita
index 6867a6c9dab..a0a36448e2e 100644
--- a/dita/RTC-NG/API/api_imediaplayer_selectaudiotrack.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_selectaudiotrack.dita
@@ -14,7 +14,7 @@
int selectAudioTrack(int index);
-
+ public abstract selectAudioTrack(index: number): number;
- (int)selectAudioTrack:(int)index;
virtual int selectAudioTrack(int index) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_selectmultiaudiotrack.dita b/dita/RTC-NG/API/api_imediaplayer_selectmultiaudiotrack.dita
index 87968cbcb2d..456a4c779ff 100644
--- a/dita/RTC-NG/API/api_imediaplayer_selectmultiaudiotrack.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_selectmultiaudiotrack.dita
@@ -14,7 +14,7 @@
int selectMultiAudioTrack(int playoutTrackIndex, int publishTrackIndex);
-
+ public abstract selectMultiAudioTrack(playoutTrackIndex:number, publishTrackIndex: number): number;
- (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
virtual int selectMultiAudioTrack(int playoutTrackIndex, int publishTrackIndex) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita b/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita
index d8a9cfc22ef..370be1d2a19 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setaudiodualmonomode.dita
@@ -14,7 +14,7 @@
int setAudioDualMonoMode(int mode);
-
+ public abstract setAudioDualMonoMode(mode:Constants.AudioDualMonoMode):number;
- (int)setAudioDualMonoMode:(AgoraAudioDualMonoMode)mode;
virtual int setAudioDualMonoMode(agora::media::base::AUDIO_DUAL_MONO_MODE mode) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_setaudiopitch.dita b/dita/RTC-NG/API/api_imediaplayer_setaudiopitch.dita
index 5825f796399..a02da6918df 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setaudiopitch.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setaudiopitch.dita
@@ -14,7 +14,7 @@
int setAudioPitch(int pitch);
-
+ public abstract setAudioPitch(pitch:number): number;
- (int)setAudioPitch:(NSInteger)pitch;
virtual int setAudioPitch(int pitch) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_setloopcount.dita b/dita/RTC-NG/API/api_imediaplayer_setloopcount.dita
index 9f53cc3f609..aa9b775a676 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setloopcount.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setloopcount.dita
@@ -15,7 +15,7 @@
int setLoopCount(int loopCount);
-
+ public abstract setLoopCount(loopCount:number):number;
- (void)setLoopCount:(NSInteger)loopCount;
virtual int setLoopCount(int loopCount) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_setplaybackspeed.dita b/dita/RTC-NG/API/api_imediaplayer_setplaybackspeed.dita
index ad733dc6497..e8ec504264b 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setplaybackspeed.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setplaybackspeed.dita
@@ -14,7 +14,7 @@
int setPlaybackSpeed(int speed);
-
+ public abstract setPlaybackSpeed(speed: number) : number;
- (int)setPlaybackSpeed:(int)speed;
virtual int setPlaybackSpeed(int speed) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_setplayeroption.dita b/dita/RTC-NG/API/api_imediaplayer_setplayeroption.dita
index 3205fc9b717..abf88b3496a 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setplayeroption.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setplayeroption.dita
@@ -14,7 +14,7 @@
int setPlayerOption(String key, int value);
-
+ public abstract setPlayerOption(key:string, value:number);
- (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
virtual int setPlayerOption(const char* key, int64_t value) = 0;
abstract setPlayerOptionInInt(key: string, value: number): number;
diff --git a/dita/RTC-NG/API/api_imediaplayer_setplayeroption2.dita b/dita/RTC-NG/API/api_imediaplayer_setplayeroption2.dita
index 55d5c9dd8a8..70b4122c5a1 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setplayeroption2.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setplayeroption2.dita
@@ -14,7 +14,7 @@
int setPlayerOptionString(String key, String value);
-
+ public abstract setPlayerOptionString(key:string, value:string): number;
- (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
virtual int setPlayerOption(const char* key, const char* value) = 0;
abstract setPlayerOptionInString(key: string, value: string): number;
diff --git a/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita b/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita
index ca0a751f4cb..f95b8f3125e 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setrendermode.dita
@@ -15,7 +15,7 @@
int setRenderMode(int mode);
-
+ public abstract setRenderMode(mode:number):number;
- (void)setRenderMode:(AgoraMediaPlayerRenderMode)mode;
virtual int setRenderMode(media::base::RENDER_MODE_TYPE renderMode) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_setview.dita b/dita/RTC-NG/API/api_imediaplayer_setview.dita
index aa7c2dc49ee..2b752c3977f 100644
--- a/dita/RTC-NG/API/api_imediaplayer_setview.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_setview.dita
@@ -15,7 +15,7 @@
int setView(View videoView);
-
+ public abstract setView(view:string):number;
- (void)setView:(View *_Nullable)view;
virtual int setView(media::base::view_t view) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_stop.dita b/dita/RTC-NG/API/api_imediaplayer_stop.dita
index 74c3413c9ee..7356ee11a2a 100644
--- a/dita/RTC-NG/API/api_imediaplayer_stop.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_stop.dita
@@ -15,7 +15,7 @@
int stop();
-
+ public abstract stop(): number;
- (void)stop;
virtual int stop() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imediaplayer_switchsrc.dita b/dita/RTC-NG/API/api_imediaplayer_switchsrc.dita
index 9b467487e2e..2cf928e62bd 100644
--- a/dita/RTC-NG/API/api_imediaplayer_switchsrc.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_switchsrc.dita
@@ -15,7 +15,7 @@
int switchSrc(String src, boolean syncPts);
-
+ public abstract switchSrc(src:string, syncPts:boolean):number;
- (int)switchSrc:(NSString *)src syncPts:(BOOL)sync;
virtual int switchSrc(const char* src, bool syncPts) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_unloadsrc.dita b/dita/RTC-NG/API/api_imediaplayer_unloadsrc.dita
index 80fd556c127..f7de7de4748 100644
--- a/dita/RTC-NG/API/api_imediaplayer_unloadsrc.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_unloadsrc.dita
@@ -15,7 +15,7 @@
int unloadSrc(String src);
-
+ public abstract unloadSrc(src:string):number;
- (int)unloadSrc:(NSString *)src;
virtual int unloadSrc(const char* src) = 0;
diff --git a/dita/RTC-NG/API/api_imediaplayer_unregisterplayersourceobserver.dita b/dita/RTC-NG/API/api_imediaplayer_unregisterplayersourceobserver.dita
index e9f497f2607..7fd11c75ff3 100644
--- a/dita/RTC-NG/API/api_imediaplayer_unregisterplayersourceobserver.dita
+++ b/dita/RTC-NG/API/api_imediaplayer_unregisterplayersourceobserver.dita
@@ -14,7 +14,7 @@
int unRegisterPlayerObserver(IMediaPlayerObserver playerObserver);
-
+ public abstract unRegisterPlayerObserver();
virtual int unregisterPlayerSourceObserver(IMediaPlayerSourceObserver* observer) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|IMediaPlayer")
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_createmusicplayer.dita b/dita/RTC-NG/API/api_imusiccontentcenter_createmusicplayer.dita
index 4a7a1b6cdda..e450d22d8ab 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_createmusicplayer.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_createmusicplayer.dita
@@ -14,7 +14,7 @@
public abstract IAgoraMusicPlayer createMusicPlayer();
-
+ public abstract createMusicPlayer():IAgoraMusicPlayer
(id<AgoraMusicPlayerProtocol> _Nullable)createMusicPlayerWithDelegate:(id<AgoraRtcMediaPlayerDelegate> _Nullable)delegate NS_SWIFT_NAME(createMusicPlayer(delegate:));
virtual agora_refptr<IMusicPlayer> createMusicPlayer() = 0;
abstract createMusicPlayer(): IMusicPlayer;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_destroy.dita b/dita/RTC-NG/API/api_imusiccontentcenter_destroy.dita
index 10af7dc5218..ddbe78af275 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_destroy.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_destroy.dita
@@ -19,7 +19,10 @@
mInstance.release();
mInstance = null;
}
-
+ public static destroy():void
+{
+ RtcNapi.destroyMusicContentCenter()
+}
+ (void)destroy;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita
index 0893c89fe19..452bfade7eb 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getcaches.dita
@@ -14,7 +14,7 @@
public abstract MusicCacheInfo[] getCaches();
-
+ public abstract getCaches():MusicCacheInfo[]
- (NSArray *)getCaches NS_SWIFT_NAME(getCaches());
virtual int getCaches(MusicCacheInfo *cacheInfo, int32_t* cacheInfoSize) = 0;
abstract getCaches(): { cacheInfo: MusicCacheInfo[]; cacheInfoSize: number };
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita
index a1cb4b2fd20..c00c16ff267 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getinternalsongcode.dita
@@ -14,7 +14,7 @@
public abstract long getInternalSongCode(long songCode, String jsonOption);
-
+ public abstract getInternalSongCode(songCode:bigint,jsonOption:string):bigint
- (NSInteger)getInternalSongCode:(NSInteger)songCode jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getInternalSongCode(songCode:jsonOption:));
virtual int getInternalSongCode(int64_t songCode, const char* jsonOption, int64_t& internalSongCode) = 0;
abstract getInternalSongCode(songCode: number, jsonOption: string): number;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getlyric.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getlyric.dita
index c8abd239217..0fc375bf663 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getlyric.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getlyric.dita
@@ -14,7 +14,7 @@
public abstract String getLyric(long songCode, int lyricType);
-
+ public abstract getLyric(songCode:bigint,lyricType:number):string
- (NSString *)getLyricWithSongCode:(NSInteger)songCode lyricType:(NSInteger)lyricType NS_SWIFT_NAME(getLyric(songCode:lyricType:));
virtual int getLyric(agora::util::AString& requestId, int64_t songCode, int32_t LyricType = 0) = 0;
abstract getLyric(songCode: number, lyricType?: number): string;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccharts.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccharts.dita
index 969030db483..c9f9bb42e5c 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccharts.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccharts.dita
@@ -14,7 +14,7 @@
public abstract String getMusicCharts();
-
+ public abstract getMusicCharts():string
- (NSString *)getMusicCharts;
virtual int getMusicCharts(agora::util::AString& requestId) = 0;
abstract getMusicCharts(): string;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccollectionbymusicchartid2.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccollectionbymusicchartid2.dita
index 193aab0725e..d8acdaea6a7 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccollectionbymusicchartid2.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getmusiccollectionbymusicchartid2.dita
@@ -15,7 +15,7 @@
public abstract String getMusicCollectionByMusicChartId(
int musicChartId, int page, int pageSize, String jsonOption);
-
+ public abstract getMusicCollectionByMusicChartId(musicChartId:number,page:number,pageSize:number,jsonOption?:string):string
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_getsongsimpleinfo.dita b/dita/RTC-NG/API/api_imusiccontentcenter_getsongsimpleinfo.dita
index fcb603b2efd..ee6aef2321c 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_getsongsimpleinfo.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_getsongsimpleinfo.dita
@@ -14,7 +14,7 @@
public abstract String getSongSimpleInfo(long songCode);
-
+ public abstract getSongSimpleInfo(songCode:bigint):string
- (NSString *)getSongSimpleInfoWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(getSongSimpleInfo(songCode:));
virtual int getSongSimpleInfo(agora::util::AString& requestId, int64_t songCode) = 0;
abstract getSongSimpleInfo(songCode: number): string;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_initialize.dita b/dita/RTC-NG/API/api_imusiccontentcenter_initialize.dita
index 535aacc6d21..9139e5ac79a 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_initialize.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_initialize.dita
@@ -14,7 +14,7 @@
public abstract int initialize(MusicContentCenterConfiguration configuration);
-
+ public abstract initialize(configuration:MusicContentCenterConfiguration):number
+ (instancetype)sharedContentCenterWithConfig:(AgoraMusicContentCenterConfig *)config NS_SWIFT_NAME(sharedContentCenter(config:));
virtual int initialize(const MusicContentCenterConfiguration & configuration) = 0;
abstract initialize(configuration: MusicContentCenterConfiguration): number;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_ispreloaded.dita b/dita/RTC-NG/API/api_imusiccontentcenter_ispreloaded.dita
index 6a4a2650068..c892e972f0c 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_ispreloaded.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_ispreloaded.dita
@@ -14,7 +14,7 @@
public abstract int isPreloaded(long songCode);
-
+ public abstract isPreloaded(songCode:bigint):number
- (NSInteger)isPreloadedWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(isPreloaded(songCode:));
virtual int isPreloaded(int64_t songCode) = 0;
abstract isPreloaded(songCode: number): number;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_registereventhandler.dita b/dita/RTC-NG/API/api_imusiccontentcenter_registereventhandler.dita
index 06ad56df417..3be7a4ee377 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_registereventhandler.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_registereventhandler.dita
@@ -14,7 +14,7 @@
public abstract int registerEventHandler(IMusicContentCenterEventHandler eventHandler);
-
+ public abstract registerEventHandler(eventHandler:IMusicContentCenterEventHandler):number
- (NSInteger)registerEventDelegate:(id<AgoraMusicContentCenterEventDelegate> _Nullable)eventDelegate;
virtual int registerEventHandler(IMusicContentCenterEventHandler* eventHandler) = 0;
abstract registerEventHandler(
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_removecache.dita b/dita/RTC-NG/API/api_imusiccontentcenter_removecache.dita
index c36d68d3e1a..4ff836a3693 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_removecache.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_removecache.dita
@@ -14,7 +14,7 @@
public abstract int removeCache(long songCode);
-
+ public abstract removeCache(songCode:bigint):number
- (NSInteger)removeCacheWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(removeCache(songCode:));
virtual int removeCache(int64_t songCode) = 0;
abstract removeCache(songCode: number): number;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_renewtoken.dita b/dita/RTC-NG/API/api_imusiccontentcenter_renewtoken.dita
index 9fc4eaf5d1c..5a06914a3e2 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_renewtoken.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_renewtoken.dita
@@ -14,7 +14,7 @@
public abstract int renewToken(String token);
-
+ public abstract renewToken(token:string):number
- (NSInteger)renewToken:(NSString * _Nonnull)token;
virtual int renewToken(const char* token) = 0;
abstract renewToken(token: string): number;
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_searchmusic2.dita b/dita/RTC-NG/API/api_imusiccontentcenter_searchmusic2.dita
index 3a514965f52..c0fb1e4dd3f 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_searchmusic2.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_searchmusic2.dita
@@ -14,7 +14,7 @@
public abstract String searchMusic(String keyword, int page, int pageSize, String jsonOption);
-
+ public abstract searchMusic(keyword:string,page:number,pageSize:number,jsonOption?:string):string
diff --git a/dita/RTC-NG/API/api_imusiccontentcenter_unregistereventhandler.dita b/dita/RTC-NG/API/api_imusiccontentcenter_unregistereventhandler.dita
index a083ebab7e5..ab46e0226b6 100644
--- a/dita/RTC-NG/API/api_imusiccontentcenter_unregistereventhandler.dita
+++ b/dita/RTC-NG/API/api_imusiccontentcenter_unregistereventhandler.dita
@@ -14,7 +14,7 @@
public abstract int unregisterEventHandler();
-
+ public abstract unregisterEventHandler():number
virtual int unregisterEventHandler() = 0;
abstract unregisterEventHandler(): number;
diff --git a/dita/RTC-NG/API/api_imusicontentcenter_preload2.dita b/dita/RTC-NG/API/api_imusicontentcenter_preload2.dita
index 590efe8c4d5..dc5a80db438 100644
--- a/dita/RTC-NG/API/api_imusicontentcenter_preload2.dita
+++ b/dita/RTC-NG/API/api_imusicontentcenter_preload2.dita
@@ -14,7 +14,7 @@
public abstract String preload(long songCode);
-
+ public abstract preload(songCode:bigint):string
- (NSString *)preloadWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(preload(songCode:));
virtual int preload(agora::util::AString& requestId, int64_t songCode) = 0;
abstract preload(songCode: number): string;
diff --git a/dita/RTC-NG/API/api_irtcengine_clearvideowatermarks.dita b/dita/RTC-NG/API/api_irtcengine_clearvideowatermarks.dita
index 2cfb4a7879b..9361f0a6eaa 100644
--- a/dita/RTC-NG/API/api_irtcengine_clearvideowatermarks.dita
+++ b/dita/RTC-NG/API/api_irtcengine_clearvideowatermarks.dita
@@ -14,7 +14,7 @@
public abstract int clearVideoWatermarks();
- public abstract clearVideoWatermarks(): number;
+
- (int)clearVideoWatermarks;
virtual int clearVideoWatermarks() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita b/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita
index 02a77b82f5c..c532f413875 100644
--- a/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita
+++ b/dita/RTC-NG/API/api_irtcengine_createmediaplayer.dita
@@ -14,7 +14,7 @@
public abstract IMediaPlayer createMediaPlayer();
-
+ public abstract createMediaPlayer():IMediaPlayer|undefined;
- (id<AgoraRtcMediaPlayerProtocol>_Nullable)createMediaPlayerWithDelegate:
(id<AgoraRtcMediaPlayerDelegate>_Nullable)delegate;
virtual agora_refptr <IMediaPlayer> createMediaPlayer() = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_destroymediaplayer.dita b/dita/RTC-NG/API/api_irtcengine_destroymediaplayer.dita
index 4c5bf4c97e8..dc0737e0a36 100644
--- a/dita/RTC-NG/API/api_irtcengine_destroymediaplayer.dita
+++ b/dita/RTC-NG/API/api_irtcengine_destroymediaplayer.dita
@@ -15,7 +15,7 @@
int destroy();
-
+ public abstract destroy():number;
- (int)destroyMediaPlayer:(id<AgoraRtcMediaPlayerProtocol>_Nullable)mediaPlayer;
virtual int destroyMediaPlayer(agora_refptr<IMediaPlayer> media_player) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita b/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita
index 53117ae0557..6baa01097c9 100644
--- a/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita
+++ b/dita/RTC-NG/API/api_irtcengine_enablecontentinspect.dita
@@ -14,7 +14,7 @@
public abstract int enableContentInspect(boolean enabled, ContentInspectConfig config);
-
+ public abstract enableContentInspect(enabled:boolean,config:ContentInspectConfig):number;
- (int)enableContentInspect:(BOOL)enabled config:(AgoraContentInspectConfig* _Nonnull)config;
virtual int enableContentInspect(bool enabled, const media::ContentInspectConfig &config) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_enableextension.dita b/dita/RTC-NG/API/api_irtcengine_enableextension.dita
index c70ae669b50..b8b07ef16b4 100644
--- a/dita/RTC-NG/API/api_irtcengine_enableextension.dita
+++ b/dita/RTC-NG/API/api_irtcengine_enableextension.dita
@@ -15,7 +15,7 @@
public abstract int enableExtension(
String provider, String extension, boolean enable, Constants.MediaSourceType sourceType);
- public abstract enableExtension(provider:string,extension:string,enable:boolean,extensionInfo:ExtensionInfo):number;
+
- (int)enableExtensionWithVendor:(NSString * __nonnull)provider
extension:(NSString * __nonnull)extension
enabled:(BOOL)enabled
diff --git a/dita/RTC-NG/API/api_irtcengine_getaudiomixingplayoutvolume.dita b/dita/RTC-NG/API/api_irtcengine_getaudiomixingplayoutvolume.dita
index 635090956a5..b1f194c062a 100644
--- a/dita/RTC-NG/API/api_irtcengine_getaudiomixingplayoutvolume.dita
+++ b/dita/RTC-NG/API/api_irtcengine_getaudiomixingplayoutvolume.dita
@@ -14,7 +14,7 @@
public abstract int getAudioMixingPlayoutVolume();
-
+ public abstract getAudioMixingPlayoutVolume():number;
- (int)getAudioMixingPlayoutVolume;
virtual int getAudioMixingPlayoutVolume() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_getaudiomixingpublishvolume.dita b/dita/RTC-NG/API/api_irtcengine_getaudiomixingpublishvolume.dita
index 73e3d5fe224..1b0aa54bab4 100644
--- a/dita/RTC-NG/API/api_irtcengine_getaudiomixingpublishvolume.dita
+++ b/dita/RTC-NG/API/api_irtcengine_getaudiomixingpublishvolume.dita
@@ -14,7 +14,7 @@
public abstract int getAudioMixingPublishVolume();
-
+ public abstract getAudioMixingPublishVolume():number;
- (int)getAudioMixingPublishVolume;
virtual int getAudioMixingPublishVolume() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_getcameramaxzoomfactor.dita b/dita/RTC-NG/API/api_irtcengine_getcameramaxzoomfactor.dita
index 10609744549..7e2afe6980f 100644
--- a/dita/RTC-NG/API/api_irtcengine_getcameramaxzoomfactor.dita
+++ b/dita/RTC-NG/API/api_irtcengine_getcameramaxzoomfactor.dita
@@ -14,7 +14,7 @@
public abstract float getCameraMaxZoomFactor();
- public abstract getCameraMaxZoomFactor():number;
+ public abstract getCameraMaxZoomFactor(): number;
- (CGFloat)cameraMaxZoomFactor;
virtual float getCameraMaxZoomFactor() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_geterrordescription.dita b/dita/RTC-NG/API/api_irtcengine_geterrordescription.dita
index fe58c5fc353..e4443a198dd 100644
--- a/dita/RTC-NG/API/api_irtcengine_geterrordescription.dita
+++ b/dita/RTC-NG/API/api_irtcengine_geterrordescription.dita
@@ -14,7 +14,9 @@
public static String getErrorDescription(int error)
-
+ public static getErrorDescription(error: number): string {
+ return RtcEngineImpl.getErrorDescriptionInternal(error);
+}
+ (NSString* _Nonnull)getErrorDescription: (NSInteger)error;
virtual const char* getErrorDescription(int code) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_getversion.dita b/dita/RTC-NG/API/api_irtcengine_getversion.dita
index 8ca609d24f7..243b4798b46 100644
--- a/dita/RTC-NG/API/api_irtcengine_getversion.dita
+++ b/dita/RTC-NG/API/api_irtcengine_getversion.dita
@@ -14,7 +14,9 @@
public static String getSdkVersion()
-
+ public static getSdkVersion(): string {
+ return RtcEngineImpl.getRtcSdkVersion();
+}
+ (NSString * _Nonnull)getSdkVersion;
virtual const char* getVersion(int* build) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_iscameraautofocusfacemodesupported.dita b/dita/RTC-NG/API/api_irtcengine_iscameraautofocusfacemodesupported.dita
index f96dcef1619..fbf967b73af 100644
--- a/dita/RTC-NG/API/api_irtcengine_iscameraautofocusfacemodesupported.dita
+++ b/dita/RTC-NG/API/api_irtcengine_iscameraautofocusfacemodesupported.dita
@@ -14,7 +14,7 @@
public abstract boolean isCameraAutoFocusFaceModeSupported();
-
+ public abstract isCameraAutoFocusFaceModeSupported(): boolean;
- (BOOL)isCameraAutoFocusFaceModeSupported;
virtual bool isCameraAutoFocusFaceModeSupported() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_iscameraexposurepositionsupported.dita b/dita/RTC-NG/API/api_irtcengine_iscameraexposurepositionsupported.dita
index 4bfda68d675..e83fb1d6e38 100644
--- a/dita/RTC-NG/API/api_irtcengine_iscameraexposurepositionsupported.dita
+++ b/dita/RTC-NG/API/api_irtcengine_iscameraexposurepositionsupported.dita
@@ -14,7 +14,7 @@
public abstract boolean isCameraExposurePositionSupported();
-
+ public abstract isCameraExposurePositionSupported(): boolean;
- (BOOL)isCameraExposurePositionSupported;
virtual bool isCameraExposurePositionSupported() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_iscameraexposuresupported.dita b/dita/RTC-NG/API/api_irtcengine_iscameraexposuresupported.dita
index d9f9d1f89ba..4dbb4883bbf 100644
--- a/dita/RTC-NG/API/api_irtcengine_iscameraexposuresupported.dita
+++ b/dita/RTC-NG/API/api_irtcengine_iscameraexposuresupported.dita
@@ -14,7 +14,7 @@
public abstract boolean isCameraExposureSupported();
-
+ public abstract isCameraExposureSupported(): boolean;
- (BOOL)isCameraExposureSupported NS_SWIFT_NAME(isCameraExposureSupported());
virtual bool isCameraExposureSupported() = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_iscamerafacedetectsupported.dita b/dita/RTC-NG/API/api_irtcengine_iscamerafacedetectsupported.dita
index a82f401a21e..3d886314c02 100644
--- a/dita/RTC-NG/API/api_irtcengine_iscamerafacedetectsupported.dita
+++ b/dita/RTC-NG/API/api_irtcengine_iscamerafacedetectsupported.dita
@@ -14,7 +14,7 @@
public abstract boolean isCameraFaceDetectSupported();
-
+ public abstract isCameraFaceDetectSupported(): boolean;
virtual bool isCameraFaceDetectSupported() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_iscamerazoomsupported.dita b/dita/RTC-NG/API/api_irtcengine_iscamerazoomsupported.dita
index 8fa8808e4c9..287a3617fe3 100644
--- a/dita/RTC-NG/API/api_irtcengine_iscamerazoomsupported.dita
+++ b/dita/RTC-NG/API/api_irtcengine_iscamerazoomsupported.dita
@@ -14,7 +14,7 @@
public abstract boolean isCameraZoomSupported();
-
+ public abstract isCameraZoomSupported(): boolean;
- (BOOL)isCameraZoomSupported;
virtual bool isCameraZoomSupported() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_setaudiomixingplaybackspeed.dita b/dita/RTC-NG/API/api_irtcengine_setaudiomixingplaybackspeed.dita
index 7cdc4a64adc..934f1f06251 100644
--- a/dita/RTC-NG/API/api_irtcengine_setaudiomixingplaybackspeed.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setaudiomixingplaybackspeed.dita
@@ -14,7 +14,7 @@
public abstract int setAudioMixingPlaybackSpeed(int speed);
-
+ public abstract setAudioMixingPlaybackSpeed(speed: number): number
- (int)setAudioMixingPlaybackSpeed:(NSInteger)speed NS_SWIFT_NAME(setAudioMixingPlaybackSpeed(_:));
virtual int setAudioMixingPlaybackSpeed(int speed) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita b/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita
index 2dfff7d1c8f..fe04aefe582 100644
--- a/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setcameraautofocusfacemodeenabled.dita
@@ -14,7 +14,7 @@
public abstract int setCameraAutoFocusFaceModeEnabled(boolean enabled);
-
+ public abstract setCameraAutoFocusFaceModeEnabled(enabled: boolean): number;
- (BOOL)setCameraAutoFocusFaceModeEnabled:(BOOL)enable;
virtual int setCameraAutoFocusFaceModeEnabled(bool enabled) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita b/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita
index 8fc92f7119a..cb6dbdf6d34 100644
--- a/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setcameraexposurefactor.dita
@@ -14,7 +14,7 @@
public abstract int setCameraExposureFactor(int factor);
-
+ public abstract setCameraExposureFactor(factor: number): number;
- (CGFloat)setCameraExposureFactor:(CGFloat)exposureFactor NS_SWIFT_NAME(setCameraExposureFactor(_:));
virtual int setCameraExposureFactor(float factor) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_setcameraexposureposition.dita b/dita/RTC-NG/API/api_irtcengine_setcameraexposureposition.dita
index 8f95b56af60..8ce4aee5aab 100644
--- a/dita/RTC-NG/API/api_irtcengine_setcameraexposureposition.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setcameraexposureposition.dita
@@ -14,7 +14,7 @@
public abstract int setCameraExposurePosition(float positionXinView, float positionYinView);
-
+ public abstract setCameraExposurePosition(positionXinView: number, positionYinView: number): number;
- (BOOL)setCameraExposurePosition:(CGPoint)positionInView;
virtual int setCameraExposurePosition(float positionXinView, float positionYinView) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_setcameratorchon.dita b/dita/RTC-NG/API/api_irtcengine_setcameratorchon.dita
index a4f8abed7de..178f0947e62 100644
--- a/dita/RTC-NG/API/api_irtcengine_setcameratorchon.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setcameratorchon.dita
@@ -14,7 +14,7 @@
public abstract int setCameraTorchOn(boolean isOn);
- public abstract setCameraTorchOn(isOn:boolean):number;
+
- (BOOL)setCameraTorchOn:(BOOL)isOn NS_SWIFT_NAME(setCameraTorchOn(_:));
virtual int setCameraTorchOn(bool isOn) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_setcamerazoomfactor.dita b/dita/RTC-NG/API/api_irtcengine_setcamerazoomfactor.dita
index 5006c43d6f7..a2c089c6030 100644
--- a/dita/RTC-NG/API/api_irtcengine_setcamerazoomfactor.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setcamerazoomfactor.dita
@@ -14,7 +14,7 @@
public abstract int setCameraZoomFactor(float factor);
- public abstract setCameraZoomFactor(factor:number):number;
+ public abstract setCameraZoomFactor(factor: number): number;
- (CGFloat)setCameraZoomFactor:(CGFloat)zoomFactor;
virtual int setCameraZoomFactor(float factor) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita b/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita
index 385deb44f24..12f83e7c774 100644
--- a/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setenablespeakerphone.dita
@@ -14,7 +14,7 @@
public abstract int setEnableSpeakerphone(boolean enabled);
- public abstract setEnableSpeakerphone(enabled: boolean): number;
+
- (int)setEnableSpeakerphone:(BOOL)enableSpeaker;
virtual int setEnableSpeakerphone(bool speakerOn) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita b/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita
index 8d5a9a79a4d..d43db8a5ee3 100644
--- a/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita
+++ b/dita/RTC-NG/API/api_irtcengine_setplaybackaudioframebeforemixingparameters.dita
@@ -14,7 +14,7 @@
public abstract int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel);
- public abstract setPlaybackAudioFrameBeforeMixingParameters(sampleRate:number,channel:number):number;
+ public abstract setPlaybackAudioFrameBeforeMixingParameters(sampleRate:number,channel:number):number;
- (int)setPlaybackAudioFrameBeforeMixingParametersWithSampleRate:(NSInteger)sampleRate
channel:(NSInteger)channel;
virtual int setPlaybackAudioFrameBeforeMixingParameters(int sampleRate, int channel) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita b/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita
index acaf43045ab..9e69c8cbe98 100644
--- a/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita
+++ b/dita/RTC-NG/API/api_irtcengine_startaudiomixing2.dita
@@ -14,7 +14,7 @@
public abstract int startAudioMixing(String filePath, boolean loopback, int cycle, int startPos);
- public abstract startAudioMixing(filepath: string, loopback: boolean, cycle: number): number;
+ public abstract startAudioMixing(filepath: string, loopback: boolean, cycle: number, startpos?:number): number;
- (int)startAudioMixing:(NSString* _Nonnull)filePath loopback:(BOOL)loopback cycle:(NSInteger)cycle startPos:(NSInteger)startPos;
virtual int startAudioMixing(const char* filePath, bool loopback, int cycle, int startPos) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita b/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita
index 76450a9476f..eb3f209ff98 100644
--- a/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita
+++ b/dita/RTC-NG/API/api_irtcengine_startaudiorecording.dita
@@ -14,7 +14,7 @@
public abstract int startAudioRecording(String filePath, int quality);
- public abstract startAudioRecording(filePath: string, quality: Constants.AudioRecordingQualityType): number;
+ public abstract startAudioRecording(filePath: string, quality: Constants.AudioRecordingQualityType): number;;
- (int)startAudioRecording:(NSString * _Nonnull)filePath
quality:(AgoraAudioRecordingQuality)quality;
virtual int startAudioRecording(const char* filePath, AUDIO_RECORDING_QUALITY_TYPE quality) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_startrtmpstreamwithouttranscoding.dita b/dita/RTC-NG/API/api_irtcengine_startrtmpstreamwithouttranscoding.dita
index f9126d754b9..33bb37b78f5 100644
--- a/dita/RTC-NG/API/api_irtcengine_startrtmpstreamwithouttranscoding.dita
+++ b/dita/RTC-NG/API/api_irtcengine_startrtmpstreamwithouttranscoding.dita
@@ -14,7 +14,7 @@
public abstract int startRtmpStreamWithoutTranscoding(String url);
-
+ public abstract startRtmpStreamWithoutTranscoding(url:string): number;
- (int)startRtmpStreamWithoutTranscoding:(NSString* _Nonnull)url;
virtual int startRtmpStreamWithoutTranscoding(const char* url) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita b/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita
index a828da7bf24..991132ce848 100644
--- a/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita
+++ b/dita/RTC-NG/API/api_irtcengine_startscreencapture.dita
@@ -15,7 +15,7 @@
public abstract int startScreenCapture(ScreenCaptureParameters screenCaptureParameters);
- public abstract startScreenCapture(parameter: ScreenCaptureParameters): number;
+ public abstract startScreenCapture(screenCaptureParameters: ScreenCaptureParameters): number;
- (int)startScreenCapture:(AgoraScreenCaptureParameters2* _Nullable)parameters NS_SWIFT_NAME(startScreenCapture(_:));
#if defined(__ANDROID__) || (defined(__APPLE__) && TARGET_OS_IOS)
virtual int startScreenCapture(const ScreenCaptureParameters2& captureParams) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita b/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita
index 709974600b4..8618186f689 100644
--- a/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita
+++ b/dita/RTC-NG/API/api_irtcengine_stopaudiorecording.dita
@@ -14,7 +14,7 @@
public abstract int stopAudioRecording();
- public abstract stopAudioRecording(): number;
+ public abstract stopAudioRecording(): number;;
- (int)stopAudioRecording;
virtual int stopAudioRecording() = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengine_stopeffect.dita b/dita/RTC-NG/API/api_irtcengine_stopeffect.dita
index 046853754b9..10135cb332a 100644
--- a/dita/RTC-NG/API/api_irtcengine_stopeffect.dita
+++ b/dita/RTC-NG/API/api_irtcengine_stopeffect.dita
@@ -15,7 +15,7 @@
public abstract int stopEffect(int soundId);
-
+ public abstract stopEffect(soundId:number):number;
- (int)stopEffect:(int)soundId;
virtual int stopEffect(int soundId) = 0;
diff --git a/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita b/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita
index f7d4f0adf90..84028bf0c22 100644
--- a/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita
+++ b/dita/RTC-NG/API/api_irtcengine_updatescreencaptureparameters.dita
@@ -16,7 +16,7 @@
public abstract int updateScreenCaptureParameters(
ScreenCaptureParameters screenCaptureParameters);
-
+ public abstract updateScreenCaptureParameters(screenCaptureParameters: ScreenCaptureParameters): number;
- (int)updateScreenCaptureParameters:(AgoraScreenCaptureParameters * _Nonnull)captureParams;
virtual int updateScreenCaptureParameters(const ScreenCaptureParameters& captureParams) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengineex_adjustuserplaybacksignalvolumeex.dita b/dita/RTC-NG/API/api_irtcengineex_adjustuserplaybacksignalvolumeex.dita
index 63b9d01276a..ef9d59005fa 100644
--- a/dita/RTC-NG/API/api_irtcengineex_adjustuserplaybacksignalvolumeex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_adjustuserplaybacksignalvolumeex.dita
@@ -15,7 +15,7 @@
public abstract int adjustUserPlaybackSignalVolumeEx(
int uid, int volume, RtcConnection connection);
-
+ public abstract adjustUserPlaybackSignalVolumeEx(uid:number,volume:number,connection:RtcConnection):number;
- (int)adjustUserPlaybackSignalVolumeEx:(NSUInteger)uid
volume:(NSInteger)volume
connection:(AgoraRtcConnection* _Nonnull)connection;
diff --git a/dita/RTC-NG/API/api_irtcengineex_enableaudiovolumeindicationex.dita b/dita/RTC-NG/API/api_irtcengineex_enableaudiovolumeindicationex.dita
index 96324efecfe..1b92382ab54 100644
--- a/dita/RTC-NG/API/api_irtcengineex_enableaudiovolumeindicationex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_enableaudiovolumeindicationex.dita
@@ -15,7 +15,7 @@
public abstract int enableAudioVolumeIndicationEx(
int interval, int smooth, boolean reportVad, RtcConnection connection);
-
+ public abstract enableAudioVolumeIndicationEx(interval:number,smooth:number,reportVad:boolean,connection:RtcConnection):number;
- (int)enableAudioVolumeIndicationEx:(NSInteger)interval
smooth:(NSInteger)smooth
reportVad:(BOOL)reportVad
diff --git a/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita b/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita
index 75e8eec9116..1780ab555b9 100644
--- a/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_muteremoteaudiostreamex.dita
@@ -14,7 +14,7 @@
public abstract int muteRemoteAudioStreamEx(int uid, boolean muted, RtcConnection connection);
-
+ public abstract muteRemoteAudioStreamEx(uid:number,muted:boolean,connection:RtcConnection):number;
- (int)muteRemoteAudioStreamEx:(NSUInteger)uid
mute:(BOOL)mute
connection:(AgoraRtcConnection * _Nonnull)connection;
diff --git a/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita b/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita
index 9e8ddb4bf2a..dcf6d72d986 100644
--- a/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_muteremotevideostreamex.dita
@@ -14,7 +14,7 @@
public abstract int muteRemoteVideoStreamEx(int uid, boolean muted, RtcConnection connection);
-
+ public abstract muteRemoteVideoStreamEx(uid:number,muted:boolean,connection:RtcConnection):number;
- (int)muteRemoteVideoStreamEx:(NSUInteger)uid
mute:(BOOL)mute
connection:(AgoraRtcConnection * _Nonnull)connection;
diff --git a/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita b/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita
index 037910c5096..56d9d8bc80b 100644
--- a/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_sendstreammessageex.dita
@@ -14,7 +14,7 @@
public abstract int sendStreamMessageEx(int streamId, byte[] message, RtcConnection connection);
-
+ public abstract sendStreamMessageEx(streamId:number,message:ArrayBuffer,connection:RtcConnection):number;
virtual int sendStreamMessageEx(int streamId, const char* data, size_t length, const RtcConnection& connection) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita b/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita
index 41e016f0084..de42d534e09 100644
--- a/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_setremoterendermodeex.dita
@@ -15,7 +15,7 @@
public abstract int setRemoteRenderModeEx(
int uid, int renderMode, int mirrorMode, RtcConnection connection);
-
+ public abstract setRemoteRenderModeEx(uid:number,renderMode:number,mirrorMode:number,connection:RtcConnection):number;
- (int)setRemoteRenderModeEx:(NSUInteger)uid
mode:(AgoraVideoRenderMode)mode
mirror:(AgoraVideoMirrorMode)mirror
diff --git a/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita b/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita
index 05d7c22bfa9..6a2e7ecd8e3 100644
--- a/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_setremotevideostreamtypeex.dita
@@ -14,7 +14,7 @@
public abstract int setRemoteVideoStreamTypeEx(int uid, int streamType, RtcConnection connection);
-
+ public abstract setRemoteVideoStreamTypeEx(uid:number,streamType:number,connection:RtcConnection):number;
- (int)setRemoteVideoStreamEx:(NSUInteger)uid
type:(AgoraVideoStreamType)streamType
connection:(AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteVideoStreamEx(_:type:connection:));
diff --git a/dita/RTC-NG/API/api_irtcengineex_takesnapshotex.dita b/dita/RTC-NG/API/api_irtcengineex_takesnapshotex.dita
index 093f7d085ce..ecd77382cd7 100644
--- a/dita/RTC-NG/API/api_irtcengineex_takesnapshotex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_takesnapshotex.dita
@@ -14,7 +14,7 @@
public abstract int takeSnapshotEx(RtcConnection connection, int uid, String filePath);
-
+ public abstract takeSnapshotEx(connection:RtcConnection,uid:number,filePath:string):number;
- (NSInteger)takeSnapshotEx:(AgoraRtcConnection * _Nonnull)connection uid:(NSInteger)uid filePath:(NSString* _Nonnull)filePath;
virtual int takeSnapshotEx(const RtcConnection& connection, uid_t uid, const char* filePath) = 0;
UFUNCTION(BlueprintCallable, Category = "Agora|RtcEngineProxy")
diff --git a/dita/RTC-NG/API/api_irtcengineex_updatechannelmediaoptionsex.dita b/dita/RTC-NG/API/api_irtcengineex_updatechannelmediaoptionsex.dita
index 87086cb94bd..7d083f8b9f5 100644
--- a/dita/RTC-NG/API/api_irtcengineex_updatechannelmediaoptionsex.dita
+++ b/dita/RTC-NG/API/api_irtcengineex_updatechannelmediaoptionsex.dita
@@ -15,7 +15,7 @@
public abstract int updateChannelMediaOptionsEx(
ChannelMediaOptions options, RtcConnection connection);
-
+ public abstract updateChannelMediaOptionsEx(options:ChannelMediaOptions,connection:RtcConnection):number;
- (int)updateChannelExWithMediaOptions:(AgoraRtcChannelMediaOptions* _Nonnull)mediaOptions
connection:(AgoraRtcConnection * _Nonnull)connection;
virtual int updateChannelMediaOptionsEx(const ChannelMediaOptions& options, const RtcConnection& connection) = 0;
diff --git a/dita/RTC-NG/API/callback_iaudiospectrumobserver_onlocalaudiospectrum.dita b/dita/RTC-NG/API/callback_iaudiospectrumobserver_onlocalaudiospectrum.dita
index 2d9be2d80e3..f7dae57b848 100644
--- a/dita/RTC-NG/API/callback_iaudiospectrumobserver_onlocalaudiospectrum.dita
+++ b/dita/RTC-NG/API/callback_iaudiospectrumobserver_onlocalaudiospectrum.dita
@@ -15,7 +15,7 @@
boolean onLocalAudioSpectrum(AudioSpectrumInfo data);
-
+ onLocalAudioSpectrum?:(data:AudioSpectrumData) => boolean ;
- (BOOL)onLocalAudioSpectrum:(NSArray<NSNumber *> * _Nullable)audioSpectrumData;
virtual bool onLocalAudioSpectrum(const AudioSpectrumData& data) = 0;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnLocalAudioSpectrum, const FAudioSpectrumData&, data);
diff --git a/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita b/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita
index b2582f27ecf..db6d6fcd2cb 100644
--- a/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita
+++ b/dita/RTC-NG/API/callback_iaudiospectrumobserver_onremoteaudiospectrum.dita
@@ -15,7 +15,7 @@
boolean onRemoteAudioSpectrum(UserAudioSpectrumInfo[] userAudioSpectrumInfos, int spectrumNumber);
-
+ onRemoteAudioSpectrum?:(data:Array<AudioSpectrumInfo>) => boolean ;
- (BOOL)onRemoteAudioSpectrum:(NSArray<AgoraAudioSpectrumInfo *> * _Nullable)AudioSpectrumInfo;
virtual bool onRemoteAudioSpectrum(const UserAudioSpectrumInfo * spectrums, unsigned int spectrumNumber) = 0;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onaudiovolumeindication.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onaudiovolumeindication.dita
index 8f98d0acf3f..e45e379dcb6 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onaudiovolumeindication.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onaudiovolumeindication.dita
@@ -14,7 +14,7 @@
void onAudioVolumeIndication(int volume);
- onAudioVolumeIndication?:( speakers:Array<AudioVolumeInfo>, totalVolume:number) => void
+ onAudioVolumeIndication?:(volume:number) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit
volumeIndicationDidReceive:(NSInteger)volume;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita
index 7ef736bb02d..58b3bf5a5ed 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onmetadata.dita
@@ -15,7 +15,7 @@
void onMetaData(Constants.MediaPlayerMetadataType type, byte[] data);
-
+ onMetaData?:(type:Constants.MediaPlayerMetadataType,data:ArrayBuffer) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit
didReceiveData:(NSString *_Nullable)data
length:(NSInteger)length;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayercachestats.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayercachestats.dita
index 715614747a3..77a870ee51f 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayercachestats.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayercachestats.dita
@@ -14,7 +14,7 @@
void onPlayerCacheStats(CacheStatistics stats);
-
+ onPlayerCacheStats?:(stats:CacheStatistics) => void
(void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit cacheStats:(AgoraMediaPlayerCacheStatistics *_Nonnull)info NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:cacheStats:));
virtual void onPlayerCacheStats(const media::base::CacheStatistics& stats) {
(void)stats;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerevent.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerevent.dita
index 236bcb188d7..69390eeeff0 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerevent.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerevent.dita
@@ -15,7 +15,7 @@
void onPlayerEvent(Constants.MediaPlayerEvent eventCode, long elapsedTime, String message);
-
+ onPlayerEvent?:(eventCode:Constants.MediaPlayerEvent,elapsedTime:bigint,message:string) => void
(void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit
didOccurEvent:(AgoraMediaPlayerEvent)eventCode
elapsedTime:(NSInteger)elapsedTime
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerinfoupdated.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerinfoupdated.dita
index af260db1115..475e3827697 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerinfoupdated.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerinfoupdated.dita
@@ -15,7 +15,7 @@
void onPlayerInfoUpdated(PlayerUpdatedInfo info);
-
+ onPlayerInfoUpdated?:(info:PlayerUpdatedInfo) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit infoUpdated:(AgoraMediaPlayerUpdatedInfo *_Nonnull)info;
virtual void onPlayerInfoUpdated(const media::base::PlayerUpdatedInfo& info) = 0;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerplaybackstats.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerplaybackstats.dita
index 441abfe434c..d3f841c7a78 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerplaybackstats.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayerplaybackstats.dita
@@ -14,7 +14,7 @@
void onPlayerPlaybackStats(PlayerPlaybackStats stats);
-
+ onPlayerPlaybackStats?:(stats:PlayerPlaybackStats) => void
(void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit playbackStats:(AgoraMediaPlayerPlaybackStats *_Nonnull)info NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:playbackStats:));
virtual void onPlayerPlaybackStats(const media::base::PlayerPlaybackStats& stats) {
(void)stats;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersourcestatechanged.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersourcestatechanged.dita
index 2303078c688..6423a11e682 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersourcestatechanged.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersourcestatechanged.dita
@@ -15,7 +15,7 @@
void onPlayerStateChanged(Constants.MediaPlayerState state, Constants.MediaPlayerReason reason);
-
+ onPlayerStateChanged?:(state:Constants.MediaPlayerState,reason:Constants.MediaPlayerReason) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit
didChangedToState:(AgoraMediaPlayerState)state
reason:(AgoraMediaPlayerReason)reason NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didChangedTo:reason:));
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersrcinfochanged.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersrcinfochanged.dita
index 127cbed8e7f..92a80ff27eb 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersrcinfochanged.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onplayersrcinfochanged.dita
@@ -15,7 +15,7 @@
void onPlayerSrcInfoChanged(SrcInfo from, SrcInfo to);
-
+ onPlayerSrcInfoChanged?:(from:SrcInfo,to:SrcInfo) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit playerSrcInfoDidChange:(AgoraMediaPlayerSrcInfo *_Nonnull)to from:(AgoraMediaPlayerSrcInfo *_Nonnull)from;
virtual void onPlayerSrcInfoChanged(const media::base::SrcInfo& from, const media::base::SrcInfo& to) = 0;
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpositionchanged.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpositionchanged.dita
index 4dab43866db..a1fbd4deeaf 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpositionchanged.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpositionchanged.dita
@@ -14,7 +14,7 @@
void onPositionChanged(long positionMs, long timestampMs);
-
+ onPositionChanged?:(positionMs:bigint,timestampMs:bigint) => void
- (void)AgoraMediaPlayer:(AgoraMediaPlayer *_Nonnull)playerKit
didChangedToPosition:(NSInteger)positionMs
atTimestamp:(NSTimeInterval)timestampMs NS_SWIFT_NAME(AgoraMediaPlayer(_:didChangedToPosition:atTimestamp:));
diff --git a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpreloadevent.dita b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpreloadevent.dita
index c6eb44e2d34..a2a5604888e 100644
--- a/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpreloadevent.dita
+++ b/dita/RTC-NG/API/callback_imediaplayersourceobserver_onpreloadevent.dita
@@ -15,7 +15,7 @@
void onPreloadEvent(String src, Constants.MediaPlayerPreloadEvent event);
-
+ onPreloadEvent?:(src:string,event:Constants.MediaPlayerPreloadEvent) => void
- (void)AgoraRtcMediaPlayer:(id<AgoraRtcMediaPlayerProtocol> _Nonnull)playerKit
didPreloadEvent:(AgoraMediaPlayerPreloadEvent)event;
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onlyricresult.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onlyricresult.dita
index 5402dea8617..0942220f233 100644
--- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onlyricresult.dita
+++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onlyricresult.dita
@@ -14,7 +14,7 @@
void onLyricResult(String requestId, long songCode, String lyricUrl, int reason);
-
+ onLyricResult?:(requestId:string,songCode:bigint,lyricUrl:string,reason:Constants.MusicContentCenterStateReason) => void
- (void)onLyricResult:(NSString*)requestId songCode:(NSInteger)songCode lyricUrl:(NSString* _Nullable)lyricUrl reason:(AgoraMusicContentCenterStateReason)reason;
virtual void onLyricResult(const char* requestId, int64_t songCode, const char* lyricUrl, MusicContentCenterStateReason reason) = 0;
onLyricResult?(
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusicchartsresult.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusicchartsresult.dita
index b543aab632e..ce1b0a5e72c 100644
--- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusicchartsresult.dita
+++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusicchartsresult.dita
@@ -14,7 +14,7 @@
void onMusicChartsResult(String requestId, MusicChartInfo[] list, int reason);
-
+ onMusicChartsResult?:(requestId:string,list:MusicChartInfo[],reason:Constants.MusicContentCenterStateReason) => void
- (void)onMusicChartsResult:(NSString *)requestId result:(NSArray<AgoraMusicChartInfo*> *)result reason:(AgoraMusicContentCenterStateReason)reason;
virtual void onMusicChartsResult(const char* requestId, agora_refptr<MusicChartCollection> result, MusicContentCenterStateReason reason) = 0;
onMusicChartsResult?(
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusiccollectionresult.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusiccollectionresult.dita
index 232818807fc..14122214595 100644
--- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusiccollectionresult.dita
+++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onmusiccollectionresult.dita
@@ -15,7 +15,7 @@
void onMusicCollectionResult(
String requestId, int page, int pageSize, int total, Music[] list, int reason);
-
+ onMusicCollectionResult?:(requestId:string,page:number,pageSize:number,total:number,list:Music[],reason:Constants.MusicContentCenterStateReason) => void
- (void)onMusicCollectionResult:(NSString *)requestId result:(AgoraMusicCollection *)result reason:(AgoraMusicContentCenterStateReason)reason;
virtual void onMusicCollectionResult(const char* requestId, agora_refptr<MusicCollection> result, MusicContentCenterStateReason reason) = 0;
onMusicCollectionResult?(
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita
index 079432c4729..c2fa0c2a2d2 100644
--- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita
+++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onpreloadevent.dita
@@ -15,7 +15,7 @@
void onPreLoadEvent(
String requestId, long songCode, int percent, String lyricUrl, int state, int reason);
-
+ onPreLoadEvent?:(requestId:string,songCode:bigint,percent:number,lyricUrl:string,state:number,reason:Constants.MusicContentCenterStateReason) => void
- (void)onPreLoadEvent:(NSString*)requestId songCode:(NSInteger)songCode percent:(NSInteger)percent lyricUrl:(NSString * _Nullable)lyricUrl state:(AgoraMusicContentCenterPreloadState)state reason:(AgoraMusicContentCenterStateReason)reason;
virtual void onPreLoadEvent(const char* requestId, int64_t songCode, int percent, const char* lyricUrl, PreloadState state, MusicContentCenterStateReason reason) = 0;
onPreLoadEvent?(
diff --git a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onsongsimpleinforesult.dita b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onsongsimpleinforesult.dita
index a72ba0e102c..78c74c90d16 100644
--- a/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onsongsimpleinforesult.dita
+++ b/dita/RTC-NG/API/callback_imusiccontentcentereventhandler_onsongsimpleinforesult.dita
@@ -14,7 +14,7 @@
void onSongSimpleInfoResult(String requestId, long songCode, String simpleInfo, int reason);
-
+ onSongSimpleInfoResult?:(requestId:string,songCode:bigint,simpleInfo:string,reason:Constants.MusicContentCenterStateReason) => void
- (void)onSongSimpleInfoResult:(NSString*)requestId songCode:(NSInteger)songCode simpleInfo:(NSString* _Nullable)simpleInfo reason:(AgoraMusicContentCenterStateReason)reason;
virtual void onSongSimpleInfoResult(const char* requestId, int64_t songCode, const char* simpleInfo, MusicContentCenterStateReason reason) = 0;
onSongSimpleInfoResult?(
diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita
index c39f8a9ce20..f6d0827cce1 100644
--- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita
+++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiomixingstatechanged.dita
@@ -14,7 +14,7 @@
public void onAudioMixingStateChanged(int state, int reasonCode);
- onAudioMixingStateChanged?:(state:number,reason:number) => void
+ onAudioMixingStateChanged?:(state:Constants.AudioMixingState,reason:Constants.AudioMixingReason) => void
- (void)rtcEngine:(AgoraRtcEngineKit *_Nonnull)engine audioMixingStateChanged:(AgoraAudioMixingStateType)state
reasonCode:(AgoraAudioMixingReasonCode)reasonCode;
virtual void onAudioMixingStateChanged(AUDIO_MIXING_STATE_TYPE state, AUDIO_MIXING_REASON_TYPE reason) {
diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiopublishstatechanged.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiopublishstatechanged.dita
index 224eeb4da45..fdedd820270 100644
--- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiopublishstatechanged.dita
+++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiopublishstatechanged.dita
@@ -15,7 +15,7 @@
public void onAudioPublishStateChanged(String channel, STREAM_PUBLISH_STATE oldState,
STREAM_PUBLISH_STATE newState, int elapseSinceLastState) {}
-
+ onAudioPublishStateChanged?:(channel:string, oldState:Constants.StreamPublishState, newState:Constants.StreamPublishState, elapseSinceLastState:number) => void;
- (void)rtcEngine:(AgoraRtcEngineKit *_Nonnull)engine
didAudioPublishStateChange:(NSString * _Nonnull)channelId
oldState:(AgoraStreamPublishState)oldState
diff --git a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita
index 2805937bb3a..a871d5ffc78 100644
--- a/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita
+++ b/dita/RTC-NG/API/callback_irtcengineeventhandler_onaudiosubscribestatechanged.dita
@@ -15,7 +15,7 @@