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
2dfec72d
Commit
2dfec72d
authored
Oct 09, 2019
by
root
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'meiteng' of
ssh://103.249.252.28:10022/lcy/education
into meiteng
parents
e86deb9b
e4d09eff
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 @
2dfec72d
This diff is collapsed.
Click to expand it.
src/main/java/org/rcisoft/business/bfile/util/GetVideoTime.java
View file @
2dfec72d
...
@@ -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
));
...
...
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