Commit e4d09eff authored by luzhuang's avatar luzhuang

音频时间

parent 2d9f745d
......@@ -11,7 +11,7 @@ import org.rcisoft.core.result.ResultCode;
@Slf4j
public class GetVideoTime {
/**
* 获取视频的时长
* 获取音频/视频的时长
* @param path
* @return
*/
......@@ -40,7 +40,8 @@ public class GetVideoTime {
}
public static void main(String[] args) {
String filePath = "E:\\迅雷下载\\CHS.mp4";
// String filePath = "E:\\迅雷下载\\CHS.mp4";
String filePath = "F:\\CloudMusic\\不要说话.mp3";
GetVideoTime getVideoTime = new GetVideoTime();
log.info( getVideoTime.getVideoDuration(filePath));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment