8 #import <Foundation/Foundation.h>
12 #import <UIKit/UIKit.h>
15 #import <AppKit/AppKit.h>
22 NS_ASSUME_NONNULL_BEGIN
39 - (int)open:(NSString *)url startPos:(NSInteger)startPos NS_SWIFT_NAME(open(_:startPos:));
49 - (int)openWithMediaSource:(
AgoraMediaSource *)source NS_SWIFT_NAME(open(with:));
59 - (int)openWithAgoraCDNSrc:(NSString *)src startPos:(NSInteger)startPos NS_SWIFT_NAME(open(withAgoraCDNSrc:startPos:));
76 - (int)switchAgoraCDNLineByIndex:(
int)index NS_SWIFT_NAME(switchAgoraCDNLine(by:));
93 - (int)enableAutoSwitchAgoraCDN:(BOOL)enable NS_SWIFT_NAME(enableAutoSwitchAgoraCDN(_:));
103 - (int)renewAgoraCDNSrcToken:(NSString *)token ts:(NSInteger)ts NS_SWIFT_NAME(renewAgoraCDNSrcToken(_:ts:));
113 - (int)switchAgoraCDNSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchAgoraCDNSrc(_:syncPts:));
145 - (int)seekToPosition:(NSInteger)position NS_SWIFT_NAME(seek(toPosition:));
158 - (int)setAudioPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioPitch(_:));
193 - (int)setLoopCount:(
int)loopCount NS_SWIFT_NAME(setLoopCount(_:));
202 - (int)setPlaybackSpeed:(
int)speed NS_SWIFT_NAME(setPlaybackSpeed(_:));
211 - (int)selectAudioTrack:(
int)index NS_SWIFT_NAME(selectAudioTrack(_:));
228 - (int)selectMultiAudioTrack:(NSInteger)playoutTrackIndex publishTrackIndex:(NSInteger)publishTrackIndex NS_SWIFT_NAME(selectMultiAudioTrack(_:publishTrackIndex:));
237 - (int)takeScreenshot:(NSString *)filename NS_SWIFT_NAME(takeScreenshot(_:));
246 - (int)selectInternalSubtitle:(
int)index NS_SWIFT_NAME(selectInternalSubtitle(_:));
255 - (int)setExternalSubtitle:(NSString *)url NS_SWIFT_NAME(setExternalSubtitle(_:));
273 - (int)mute:(
bool)isMute NS_SWIFT_NAME(mute(_:));
292 - (int)adjustPlayoutVolume:(
int)volume NS_SWIFT_NAME(adjustPlayoutVolume(_:));
304 - (int)adjustPublishSignalVolume:(
int)volume NS_SWIFT_NAME(adjustPublishSignalVolume(_:));
321 - (int)setPlayerOption:(NSString *)key value:(NSInteger)value NS_SWIFT_NAME(setPlayerOption(_:value:));
333 - (int)setPlayerOptionString:(NSString *)key value:(NSString *)value NS_SWIFT_NAME(setPlayerOptionString(_:value:));
338 - (int)setView:(
View *_Nullable)view NS_SWIFT_NAME(setView(_:));
363 - (int)switchSrc:(NSString *)src syncPts:(BOOL)syncPts NS_SWIFT_NAME(switchSrc(_:syncPts:));
373 - (int)preloadSrc:(NSString *)src startPos:(
int)startPos NS_SWIFT_NAME(preloadSrc(_:startPos:));
382 - (int)unloadSrc:(NSString *)src NS_SWIFT_NAME(unloadSrc(_:));
391 - (int)playPreloadedSrc:(NSString *)src NS_SWIFT_NAME(playPreloadedSrc(_:));
414 - (int)openWithCustomSourceAtStartPos:(NSInteger)startPos
428 - (int)setSpatialAudioParams:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setSpatialAudioParams(_:));
430 #pragma mark Callback Audio PCM Frame
442 #pragma mark Callback Video Frame
455 intervalInMS:(NSUInteger)intervalInMS NS_SWIFT_NAME(registerMediaPlayerAudioSpectrumDelegate(_:intervalInMS:));
457 - (int)unregisterMediaPlayerAudioSpectrumDelegate:(
id<
AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterMediaPlayerAudioSpectrumDelegate(_:));
489 - (int)removeCacheByUri:(NSString *)uri NS_SWIFT_NAME(removeCache(byUri:));
497 - (int)setCacheDir:(NSString *)cacheDir NS_SWIFT_NAME(setCacheDir(_:));
505 - (int)setMaxCacheFileCount:(NSInteger)count NS_SWIFT_NAME(setMaxCacheFileCount(_:));
513 - (int)setMaxCacheFileSize:(NSInteger)cacheSize NS_SWIFT_NAME(setMaxCacheFileSize(_:));
521 - (int)enableAutoRemoveCache:(BOOL)enable NS_SWIFT_NAME(enableAutoRemoveCache(_:));
551 NS_ASSUME_NONNULL_END