mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
支持在线播放音频, 且获取音频文件元数据, 歌手, 封面等信息
This commit is contained in:
@@ -111,4 +111,9 @@ public class FileController {
|
||||
public ResultBean getImageInfo(String url) throws Exception {
|
||||
return ResultBean.success(fileService.getImageInfo(url));
|
||||
}
|
||||
|
||||
@GetMapping("/audioInfo")
|
||||
public ResultBean getAudioInfo(String url) throws Exception {
|
||||
return ResultBean.success(fileService.getAudioInfo(url));
|
||||
}
|
||||
}
|
||||
|
||||
40
src/main/java/im/zhaojun/common/model/AudioInfo.java
Normal file
40
src/main/java/im/zhaojun/common/model/AudioInfo.java
Normal file
@@ -0,0 +1,40 @@
|
||||
package im.zhaojun.common.model;
|
||||
|
||||
public class AudioInfo {
|
||||
private String title;
|
||||
private String artist;
|
||||
private String cover;
|
||||
private String src;
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
||||
public void setTitle(String title) {
|
||||
this.title = title;
|
||||
}
|
||||
|
||||
public String getArtist() {
|
||||
return artist;
|
||||
}
|
||||
|
||||
public void setArtist(String artist) {
|
||||
this.artist = artist;
|
||||
}
|
||||
|
||||
public String getCover() {
|
||||
return cover;
|
||||
}
|
||||
|
||||
public void setCover(String cover) {
|
||||
this.cover = cover;
|
||||
}
|
||||
|
||||
public String getSrc() {
|
||||
return src;
|
||||
}
|
||||
|
||||
public void setSrc(String src) {
|
||||
this.src = src;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user