mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
视频上传添加视频时长
This commit is contained in:
@@ -124,6 +124,10 @@ public class SysUploaderApi extends ApiBaseController{
|
||||
MultimediaInfo m = encoder.getInfo(new File(fileFullPath));
|
||||
Long ls = m.getDuration() / 1000;//秒
|
||||
dto.setDuration(ls);
|
||||
dto.setDisplayName(xur.getDisplayName());
|
||||
dto.setFilePath(xur.getFilePath());
|
||||
dto.setFileType(xur.getFileType());
|
||||
dto.setHttpPath(xur.getHttpPath());
|
||||
return wrap(dto);
|
||||
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user