com.liferay.portlet.documentlibrary.util
Class JQTFastStart
java.lang.Object
com.liferay.portlet.documentlibrary.util.JQTFastStart
public class JQTFastStart
- extends Object
This class updates an MP4 to be a "fast start" movie. This allows the MP4 to
be more quickly read by a client player without needing to completely
download the file. It is achieved by moving the movie's MOOV atom to the
front of the file. This code is based on the public domain code of JQTFaststat.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JQTFastStart
public JQTFastStart()
convert
public static void convert(File inputFile,
File outputFile)
throws IOException
- Throws:
IOException
doConvert
protected void doConvert(File inputFile,
File outputFile)
throws IOException
- Throws:
IOException
validate
protected void validate(File inputFile,
File outputFile)
throws IOException
- Throws:
IOException