利用MultipartFile计算视频的播放时长
发布时间
阅读量:
阅读量
此方法使用到一个外部jar包,名称为:jave-1.0.2.jar可以在网上找到并下载。
此外需要注意的是在idea导入此jar包,具体步骤为:
AI写代码html


/** * 根据传入的MultipartFile进行计算视频的播放时长
* @param contentFile
* @return
* @throws InputFormatException
* @throws EncoderException
*/
public static int getVideoTime(MultipartFile contentFile) throws InputFormatExcepti
全部评论 (0)
还没有任何评论哟~
