AgoraMusic

  • iOS

更新时间不可用

提供音乐资源的详细信息。

Objective-C
__attribute__((visibility("default"))) @interface AgoraMusic : NSObject
@property(nonatomic, assign) NSInteger songCode;
@property(nonatomic, assign) NSInteger type;
@property(nonatomic, assign) NSInteger pitchType;
@property(nonatomic, copy) NSString* name;
@property(nonatomic, copy) NSString* singer;
@property(nonatomic, copy) NSString* poster;
@property(nonatomic, copy) NSString* releaseTime;
@property(nonatomic, assign) NSInteger durationS;
@property(nonatomic, strong) NSArray<NSNumber *>* lyricList;
@property(nonatomic, strong) NSArray<AgoraMvProperty *>* mvPropertyList;
@property(nonatomic, strong) NSArray<AgoraClimaxSegment *>* climaxSegmentList;
@end

属性

参数名描述
songCode

音乐资源的 ID,用于标识一个音乐资源。

type

音乐资源的类型:

  • 1:单流模式音频,左声道为伴奏,右声道为原唱。
  • 2:单流模式音频,仅包含伴奏。
  • 3:单流模式音频,仅包含原唱。
  • 4:多轨音频资源。
pitchType

歌曲是否支持评分功能:

  • 1:支持评分功能。
  • 2:不支持评分功能。
name

音乐资源的名称。

singer

歌手名称。

poster

音乐资源封面的下载地址。

releaseTime

音乐资源的发布时间。

durationS

音乐资源的总时长(单位为秒)。

lyricList

支持的歌词类型:

  • 0:XML 格式。
  • 1:LRC 格式。
mvPropertyList

MV 属性列表。

climaxSegmentList

高潮片段列表。详见 AgoraClimaxSegment。

表格内容超出当前宽度,可横向滚动查看更多列。

这个页面有帮助吗?