集成视频格式转换功能1.0(基于javacv)

This commit is contained in:
zhangxiaoxiao9527
2021-04-18 12:40:59 +08:00
committed by kl
parent a3485dd9b7
commit bcdb5ce0e6
10 changed files with 333 additions and 3 deletions

View File

@ -286,4 +286,27 @@ public class FileHandlerService {
}
return attribute;
}
/**
* @return 已转换过的视频文件集合(缓存)
*/
public Map<String, String> listConvertedMedias() {
return cacheService.getMediaConvertCache();
}
/**
* 添加转换后的视频文件缓存
* @param fileName
* @param value
*/
public void addConvertedMedias(String fileName, String value) {
cacheService.putMediaConvertCache(fileName, value);
}
/**
* @return 已转换视频文件缓存,根据文件名获取
*/
public String getConvertedMedias(String key) {
return cacheService.getMediaConvertCache(key);
}
}