AgoraMusic
音乐资源的详细信息。
__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<AgoraClimaxSegment *>* climaxSegmentList; @end
- 自从
- v4.1.0
属性
- songCode
- 音乐资源的编号,用于标识一个音乐资源。
- name
- 音乐资源名称。
- singer
- 歌手名。
- poster
- 音乐资源海报的下载地址。
- releaseTime
- 音乐资源发布的时间。
- type
- 音乐资源类型:
- 1:左声道伴奏,右声道原唱的单音轨纯音频音源。
- 2:只有伴唱的单音轨纯音频音源。
- 3:只有原唱的单音轨纯音频音源。
- 4:多音轨的纯音频音源。
- pitchType
- 歌曲是否支持演唱评分功能:
- 1:歌曲支持演唱评分功能。
- 2:歌曲不支持演唱评分功能。
- durationS
- 音乐资源总时长 (秒)。
- lyricList
- 支持的歌词类型:
- 0:xml 格式。
- 1:lrc 格式。
- climaxSegmentList
- 音乐高潮片段列表,详见 AgoraClimaxSegment。