8 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
14 #import <AppKit/AppKit.h>
18 @protocol AgoraRtcAudioSpectrumDelegateocol;
23 NS_ASSUME_NONNULL_BEGIN
40 - (int)open:(NSString *)url startPos:(NSInteger)startPos NS_SWIFT_NAME(open(_:startPos:));
50 - (int)openWithMediaSource:(
AgoraMediaSource *)source NS_SWIFT_NAME(open(with:));
60 - (int)openWithAgoraCDNSrc:(NSString *)src startPos:(NSInteger)startPos NS_SWIFT_NAME(open(withAgoraCDNSrc:startPos:));
77 - (int)switchAgoraCDNLineByIndex:(
int)index NS_SWIFT_NAME(switchAgoraCDNLine(by:));
94 - (int)enableAutoSwitchAgoraCDN:(BOOL)enable NS_SWIFT_NAME(enableAutoSwitchAgoraCDN(_:));
104 - (int)renewAgoraCDNSrcToken:(NSString *)token ts:(NSInteger)ts NS_SWIFT_NAME(renewAgoraCDNSrcToken(_:ts:));
114 - (int)switchAgoraCDNSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchAgoraCDNSrc(_:syncPts:));
146 - (int)seekToPosition:(NSInteger)position NS_SWIFT_NAME(seek(toPosition:));
159 - (int)setAudioPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioPitch(_:));
194 - (int)setLoopCount:(
int)loopCount NS_SWIFT_NAME(setLoopCount(_:));
203 - (int)setPlaybackSpeed:(
int)speed NS_SWIFT_NAME(setPlaybackSpeed(_:));
212 - (int)selectAudioTrack:(
int)index NS_SWIFT_NAME(selectAudioTrack(_:));
229 - (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
238 - (int)takeScreenshot:(NSString *)filename NS_SWIFT_NAME(takeScreenshot(_:));
247 - (int)selectInternalSubtitle:(
int)index NS_SWIFT_NAME(selectInternalSubtitle(_:));
256 - (int)setExternalSubtitle:(NSString *)url NS_SWIFT_NAME(setExternalSubtitle(_:));
274 - (int)mute:(BOOL)isMute NS_SWIFT_NAME(mute(_:));
293 - (int)adjustPlayoutVolume:(
int)volume NS_SWIFT_NAME(adjustPlayoutVolume(_:));
305 - (int)adjustPublishSignalVolume:(
int)volume NS_SWIFT_NAME(adjustPublishSignalVolume(_:));
322 - (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
334 - (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
339 - (int)setView:(
View *_Nullable)view NS_SWIFT_NAME(setView(_:));
364 - (int)switchSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchSrc(_:syncPts:));
374 - (int)preloadSrc:(NSString *)src startPos:(
int)startPos NS_SWIFT_NAME(preloadSrc(_:startPos:));
383 - (int)unloadSrc:(NSString *)src NS_SWIFT_NAME(unloadSrc(_:));
392 - (int)playPreloadedSrc:(NSString *)src NS_SWIFT_NAME(playPreloadedSrc(_:));
413 - (int)setSpatialAudioParams:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setSpatialAudioParams(_:));
415 #pragma mark Callback Audio PCM Frame
427 #pragma mark Callback Video Frame
440 intervalInMS:(NSUInteger)intervalInMS NS_SWIFT_NAME(registerMediaPlayerAudioSpectrumDelegate(_:intervalInMS:));
442 - (int)unregisterMediaPlayerAudioSpectrumDelegate:(
id<
AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterMediaPlayerAudioSpectrumDelegate(_:));
446 NS_ASSUME_NONNULL_END