8 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
14 #import <AppKit/AppKit.h>
18 @protocol AgoraRtcAudioSpectrumDelegateocol;
23 NS_ASSUME_NONNULL_BEGIN
57 - (int)open:(NSString *)url startPos:(NSInteger)startPos NS_SWIFT_NAME(open(_:startPos:));
78 - (int)openWithMediaSource:(
AgoraMediaSource *)source NS_SWIFT_NAME(open(with:));
91 - (int)openWithAgoraCDNSrc:(NSString *)src startPos:(NSInteger)startPos NS_SWIFT_NAME(open(withAgoraCDNSrc:startPos:));
114 - (int)switchAgoraCDNLineByIndex:(
int)index NS_SWIFT_NAME(switchAgoraCDNLine(by:));
137 - (int)enableAutoSwitchAgoraCDN:(BOOL)enable NS_SWIFT_NAME(enableAutoSwitchAgoraCDN(_:));
150 - (int)renewAgoraCDNSrcToken:(NSString *)token ts:(NSInteger)ts NS_SWIFT_NAME(renewAgoraCDNSrcToken(_:ts:));
163 - (int)switchAgoraCDNSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchAgoraCDNSrc(_:syncPts:));
239 - (int)seekToPosition:(NSInteger)position NS_SWIFT_NAME(seek(toPosition:));
255 - (int)setAudioPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioPitch(_:));
327 - (int)setLoopCount:(
int)loopCount NS_SWIFT_NAME(setLoopCount(_:));
345 - (int)setPlaybackSpeed:(
int)speed NS_SWIFT_NAME(setPlaybackSpeed(_:));
364 - (int)selectAudioTrack:(
int)index NS_SWIFT_NAME(selectAudioTrack(_:));
387 - (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
396 - (int)takeScreenshot:(NSString *)filename NS_SWIFT_NAME(takeScreenshot(_:));
405 - (int)selectInternalSubtitle:(
int)index NS_SWIFT_NAME(selectInternalSubtitle(_:));
414 - (int)setExternalSubtitle:(NSString *)url NS_SWIFT_NAME(setExternalSubtitle(_:));
438 - (int)mute:(BOOL)isMute NS_SWIFT_NAME(mute(_:));
463 - (int)adjustPlayoutVolume:(
int)volume NS_SWIFT_NAME(adjustPlayoutVolume(_:));
492 - (int)adjustPublishSignalVolume:(
int)volume NS_SWIFT_NAME(adjustPublishSignalVolume(_:));
523 - (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
545 - (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
559 - (int)setView:(
View *_Nullable)view NS_SWIFT_NAME(setView(_:));
615 - (int)switchSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchSrc(_:syncPts:));
644 - (int)preloadSrc:(NSString *)src startPos:(
int)startPos NS_SWIFT_NAME(preloadSrc(_:startPos:));
657 - (int)unloadSrc:(NSString *)src NS_SWIFT_NAME(unloadSrc(_:));
682 - (int)playPreloadedSrc:(NSString *)src NS_SWIFT_NAME(playPreloadedSrc(_:));
725 - (int)setSpatialAudioParams:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setSpatialAudioParams(_:));
727 #pragma mark Callback Audio PCM Frame
739 #pragma mark Callback Video Frame
760 intervalInMS:(NSUInteger)intervalInMS NS_SWIFT_NAME(registerMediaPlayerAudioSpectrumDelegate(_:intervalInMS:));
762 - (int)unregisterMediaPlayerAudioSpectrumDelegate:(
id<
AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterMediaPlayerAudioSpectrumDelegate(_:));
766 NS_ASSUME_NONNULL_END