Music
音乐资源的详细信息。
Java
public class Music {
public long songCode;
public String name;
public String singer;
public String poster;
public String releaseTime;
public int type;
public int pitchType;
public int durationS;
public int[] lyricTypes;
public ClimaxSegment[] climaxSegments;
public Music() {}
@CalledByNative
public Music(long songCode, String name, String singer, String poster, String releaseTime,
int type, int pitchType, int durationS, int[] lyricTypes,
ClimaxSegment[] climaxSegments) {
this.songCode = songCode;
this.name = name;
this.singer = singer;
this.poster = poster;
this.releaseTime = releaseTime;
this.type = type;
this.pitchType = pitchType;
this.durationS = durationS;
this.lyricTypes = lyricTypes;
this.climaxSegments = climaxSegments;
}
@CalledByNative
public long getSongCode() {
return songCode;
}
@CalledByNative
public String getName() {
return name;
}
@CalledByNative
public String getSinger() {
return singer;
}
@CalledByNative
public String getPoster() {
return poster;
}
@CalledByNative
public String getReleaseTime() {
return releaseTime;
}
@CalledByNative
public int getType() {
return type;
}
@CalledByNative
public int getPitchType() {
return pitchType;
}
@CalledByNative
public int getDurationS() {
return durationS;
}
@CalledByNative
public int[] getLyricTypes() {
return lyricTypes;
}
@CalledByNative
public ClimaxSegment[] getClimaxSegments() {
return climaxSegments;
}
}
自从
v4.1.0
songCode
音乐资源的编号,用于标识一个音乐资源。
name
音乐资源名称。
singer
歌手名。
poster
音乐资源海报的下载地址。
releaseTime
音乐资源发布的时间。
type
音乐资源类型:
- 1:左声道伴奏,右声道原唱的单音轨音源。
- 2:只有伴唱的单音轨音源。
- 3:只有原唱的单音轨音源。
- 4:多音轨音源。
pitchType
歌曲是否支持演唱评分功能:
- 1:歌曲支持演唱评分功能。
- 2:歌曲不支持演唱评分功能。
durationS
音乐资源总时长 (秒)。
lyricTypes
支持的歌词类型:
- 0:xml 格式。
- 1:lrc 格式。
climaxSegments
音乐高潮片段列表,详见 ClimaxSegment。