Advertisement

利用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)

还没有任何评论哟~