Commit 2dfec72d authored by root's avatar root

Merge branch 'meiteng' of ssh://103.249.252.28:10022/lcy/education into meiteng

parents e86deb9b e4d09eff
...@@ -11,7 +11,7 @@ import org.rcisoft.core.result.ResultCode; ...@@ -11,7 +11,7 @@ import org.rcisoft.core.result.ResultCode;
@Slf4j @Slf4j
public class GetVideoTime { public class GetVideoTime {
/** /**
* 获取视频的时长 * 获取音频/视频的时长
* @param path * @param path
* @return * @return
*/ */
...@@ -40,7 +40,8 @@ public class GetVideoTime { ...@@ -40,7 +40,8 @@ public class GetVideoTime {
} }
public static void main(String[] args) { 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(); GetVideoTime getVideoTime = new GetVideoTime();
log.info( getVideoTime.getVideoDuration(filePath)); 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