8 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
14 #import <AppKit/AppKit.h>
18 @protocol AgoraRtcAudioSpectrumDelegateocol;
23 NS_ASSUME_NONNULL_BEGIN
53 - (int)open:(NSString *)url startPos:(NSInteger)startPos NS_SWIFT_NAME(open(_:startPos:));
74 - (int)openWithMediaSource:(
AgoraMediaSource *)source NS_SWIFT_NAME(open(with:));
87 - (int)openWithAgoraCDNSrc:(NSString *)src startPos:(NSInteger)startPos NS_SWIFT_NAME(open(withAgoraCDNSrc:startPos:));
110 - (int)switchAgoraCDNLineByIndex:(
int)index NS_SWIFT_NAME(switchAgoraCDNLine(by:));
133 - (int)enableAutoSwitchAgoraCDN:(BOOL)enable NS_SWIFT_NAME(enableAutoSwitchAgoraCDN(_:));
146 - (int)renewAgoraCDNSrcToken:(NSString *)token ts:(NSInteger)ts NS_SWIFT_NAME(renewAgoraCDNSrcToken(_:ts:));
159 - (int)switchAgoraCDNSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchAgoraCDNSrc(_:syncPts:));
235 - (int)seekToPosition:(NSInteger)position NS_SWIFT_NAME(seek(toPosition:));
251 - (int)setAudioPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioPitch(_:));
323 - (int)setLoopCount:(
int)loopCount NS_SWIFT_NAME(setLoopCount(_:));
341 - (int)setPlaybackSpeed:(
int)speed NS_SWIFT_NAME(setPlaybackSpeed(_:));
360 - (int)selectAudioTrack:(
int)index NS_SWIFT_NAME(selectAudioTrack(_:));
383 - (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
392 - (int)takeScreenshot:(NSString *)filename NS_SWIFT_NAME(takeScreenshot(_:));
401 - (int)selectInternalSubtitle:(
int)index NS_SWIFT_NAME(selectInternalSubtitle(_:));
410 - (int)setExternalSubtitle:(NSString *)url NS_SWIFT_NAME(setExternalSubtitle(_:));
434 - (int)mute:(BOOL)isMute NS_SWIFT_NAME(mute(_:));
459 - (int)adjustPlayoutVolume:(
int)volume NS_SWIFT_NAME(adjustPlayoutVolume(_:));
488 - (int)adjustPublishSignalVolume:(
int)volume NS_SWIFT_NAME(adjustPublishSignalVolume(_:));
519 - (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
541 - (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
555 - (int)setView:(
View *_Nullable)view NS_SWIFT_NAME(setView(_:));
611 - (int)switchSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchSrc(_:syncPts:));
640 - (int)preloadSrc:(NSString *)src startPos:(
int)startPos NS_SWIFT_NAME(preloadSrc(_:startPos:));
653 - (int)unloadSrc:(NSString *)src NS_SWIFT_NAME(unloadSrc(_:));
678 - (int)playPreloadedSrc:(NSString *)src NS_SWIFT_NAME(playPreloadedSrc(_:));
721 - (int)setSpatialAudioParams:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setSpatialAudioParams(_:));
723 #pragma mark Callback Audio PCM Frame
735 #pragma mark Callback Video Frame
756 intervalInMS:(NSUInteger)intervalInMS NS_SWIFT_NAME(registerMediaPlayerAudioSpectrumDelegate(_:intervalInMS:));
758 - (int)unregisterMediaPlayerAudioSpectrumDelegate:(
id<
AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterMediaPlayerAudioSpectrumDelegate(_:));
762 NS_ASSUME_NONNULL_END