9 #import <Foundation/Foundation.h>
46 NS_ASSUME_NONNULL_BEGIN
56 @property (nonatomic, assign) NSInteger
identify;
63 @property (nonatomic, copy) NSString *resolution;
67 @property (nonatomic, copy) NSString *bandwidth;
74 @property(nonatomic, assign) NSInteger startTimeMs;
78 @property(nonatomic, assign) NSInteger endTimeMs;
84 __attribute__((visibility(
"default")))
@interface AgoraMusic : NSObject
88 @property(nonatomic, assign) NSInteger songCode;
99 @property(nonatomic, assign) NSInteger type;
105 @property(nonatomic, assign) NSInteger pitchType;
109 @property(nonatomic, copy) NSString* name;
113 @property(nonatomic, copy) NSString* singer;
117 @property(nonatomic, copy) NSString* poster;
122 @property(nonatomic, copy) NSString* releaseTime;
126 @property(nonatomic, assign) NSInteger durationS;
132 @property(nonatomic, strong) NSArray<NSNumber *>* lyricList;
136 @property(nonatomic, strong) NSArray<AgoraMvProperty *>* mvPropertyList;
140 @property(nonatomic, strong) NSArray<AgoraClimaxSegment *>* climaxSegmentList;
150 @property(nonatomic, assign) NSInteger count;
154 @property(nonatomic, assign) NSInteger total;
158 @property(nonatomic, assign) NSInteger page;
162 @property(nonatomic, assign) NSInteger pageSize;
166 @property(nonatomic, strong) NSArray<AgoraMusic *>* musicList;
197 - (void)onLyricResult:(NSString*)requestId lyricUrl:(NSString*)lyricUrl;
218 @property (nonatomic, copy) NSString *appId;
222 @property (nonatomic, copy) NSString *token;
226 @property (nonatomic, assign) NSInteger mccUid;
239 - (NSInteger)openMediaWithSongCode:(NSInteger)songCode startPos:(NSInteger)startPos NS_SWIFT_NAME(openMedia(songCode:startPos:));
260 - (NSInteger)renewToken:(NSString * _Nonnull)token;
299 - (NSString *)getMusicCollectionWithMusicChartId:(NSInteger)musicChartId page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getMusicCollection(musicChartId:page:pageSize:jsonOption:));
310 - (NSString *)searchMusicWithKeyWord:(NSString *)keyWord page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(searchMusic(keyWord:page:pageSize:jsonOption:));
321 - (NSInteger)preloadWithSongCode:(NSInteger)songCode jsonOption:(NSString* _Nullable)jsonOption NS_SWIFT_NAME(preload(songCode:jsonOption:));
331 - (NSInteger)isPreloadedWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(isPreloaded(songCode:));
340 - (NSString *)getLyricWithSongCode:(NSInteger)songCode lyricType:(NSInteger)lyricType NS_SWIFT_NAME(getLyric(songCode:lyricType:));
347 - (void)enableMainQueueDispatch:(BOOL)enabled;
358 NS_ASSUME_NONNULL_END