Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李丛阳
education
Commits
e4d09eff
Commit
e4d09eff
authored
Oct 08, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音频时间
parent
2d9f745d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
BFileServiceImpl.java
...rcisoft/business/bfile/service/impl/BFileServiceImpl.java
+1
-1
GetVideoTime.java
...in/java/org/rcisoft/business/bfile/util/GetVideoTime.java
+3
-2
No files found.
src/main/java/org/rcisoft/business/bfile/service/impl/BFileServiceImpl.java
View file @
e4d09eff
This diff is collapsed.
Click to expand it.
src/main/java/org/rcisoft/business/bfile/util/GetVideoTime.java
View file @
e4d09eff
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment