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:));
63 - (int)openWithAgoraCDNSrc:(NSString *)src startPos:(NSInteger)startPos NS_SWIFT_NAME(open(withAgoraCDNSrc:startPos:));
86 - (int)switchAgoraCDNLineByIndex:(
int)index NS_SWIFT_NAME(switchAgoraCDNLine(by:));
109 - (int)enableAutoSwitchAgoraCDN:(BOOL)enable NS_SWIFT_NAME(enableAutoSwitchAgoraCDN(_:));
122 - (int)renewAgoraCDNSrcToken:(NSString *)token ts:(NSInteger)ts NS_SWIFT_NAME(renewAgoraCDNSrcToken(_:ts:));
135 - (int)switchAgoraCDNSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchAgoraCDNSrc(_:syncPts:));
167 - (int)seekToPosition:(NSInteger)position NS_SWIFT_NAME(seek(toPosition:));
180 - (int)setAudioPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioPitch(_:));
215 - (int)setLoopCount:(
int)loopCount NS_SWIFT_NAME(setLoopCount(_:));
224 - (int)setPlaybackSpeed:(
int)speed NS_SWIFT_NAME(setPlaybackSpeed(_:));
233 - (int)selectAudioTrack:(
int)index NS_SWIFT_NAME(selectAudioTrack(_:));
250 - (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
259 - (int)takeScreenshot:(NSString *)filename NS_SWIFT_NAME(takeScreenshot(_:));
268 - (int)selectInternalSubtitle:(
int)index NS_SWIFT_NAME(selectInternalSubtitle(_:));
277 - (int)setExternalSubtitle:(NSString *)url NS_SWIFT_NAME(setExternalSubtitle(_:));
295 - (int)mute:(BOOL)isMute NS_SWIFT_NAME(mute(_:));
314 - (int)adjustPlayoutVolume:(
int)volume NS_SWIFT_NAME(adjustPlayoutVolume(_:));
326 - (int)adjustPublishSignalVolume:(
int)volume NS_SWIFT_NAME(adjustPublishSignalVolume(_:));
343 - (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
355 - (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
360 - (int)setView:(
View *_Nullable)view NS_SWIFT_NAME(setView(_:));
385 - (int)switchSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchSrc(_:syncPts:));
395 - (int)preloadSrc:(NSString *)src startPos:(
int)startPos NS_SWIFT_NAME(preloadSrc(_:startPos:));
404 - (int)unloadSrc:(NSString *)src NS_SWIFT_NAME(unloadSrc(_:));
413 - (int)playPreloadedSrc:(NSString *)src NS_SWIFT_NAME(playPreloadedSrc(_:));
434 - (int)setSpatialAudioParams:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setSpatialAudioParams(_:));
436 #pragma mark Callback Audio PCM Frame
448 #pragma mark Callback Video Frame
461 intervalInMS:(NSUInteger)intervalInMS NS_SWIFT_NAME(registerMediaPlayerAudioSpectrumDelegate(_:intervalInMS:));
463 - (int)unregisterMediaPlayerAudioSpectrumDelegate:(
id<
AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterMediaPlayerAudioSpectrumDelegate(_:));
467 NS_ASSUME_NONNULL_END