Package com.jalios.io

Class VideoUtil

java.lang.Object
com.jalios.io.VideoUtil
All Implemented Interfaces:
JaliosConstants

public class VideoUtil extends Object implements JaliosConstants
  • Constructor Details

    • VideoUtil

      public VideoUtil()
  • Method Details

    • getMP4Duration

      public static long getMP4Duration(File file)
      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