Package com.jalios.io
Class VideoUtil
java.lang.Object
com.jalios.io.VideoUtil
- All Implemented Interfaces:
JaliosConstants
-
Field Summary
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longgetMP4Duration(File file) Returns the duration of the given MP4 file or -1 if the duration cannot be extracted.
-
Constructor Details
-
VideoUtil
public VideoUtil()
-
-
Method Details
-
getMP4Duration
Returns the duration of the given MP4 file or -1 if the duration cannot be extracted.- Parameters:
file- the MP4 file- Returns:
- the duration of the given MP4 file or -1 if the duration cannot be extracted.
- Since:
- jcms-10.0.0
-