com.liferay.portlet.documentlibrary.util
Class JQTFastStart
java.lang.Object
com.liferay.portlet.documentlibrary.util.JQTFastStart
public class JQTFastStart
- extends java.lang.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.
- Author:
- Juan González
|
Method Summary |
static void |
convert(java.io.File inputFile,
java.io.File outputFile)
|
protected void |
doConvert(java.io.File inputFile,
java.io.File outputFile)
|
protected void |
validate(java.io.File inputFile,
java.io.File outputFile)
|
| 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(java.io.File inputFile,
java.io.File outputFile)
throws java.io.IOException
- Throws:
java.io.IOException
doConvert
protected void doConvert(java.io.File inputFile,
java.io.File outputFile)
throws java.io.IOException
- Throws:
java.io.IOException
validate
protected void validate(java.io.File inputFile,
java.io.File outputFile)
throws java.io.IOException
- Throws:
java.io.IOException