com.liferay.portlet.documentlibrary.util
Class VideoProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.VideoProcessorUtil
public class VideoProcessorUtil
- extends java.lang.Object
- Author:
- Sergio González
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VideoProcessorUtil
public VideoProcessorUtil()
generateVideo
public static void generateVideo(FileVersion fileVersion)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPreviewAsStream
public static java.io.InputStream getPreviewAsStream(FileVersion fileVersion,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPreviewFileSize
public static long getPreviewFileSize(FileVersion fileVersion,
java.lang.String type)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThumbnailAsStream
public static java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getVideoMimeTypes
public static java.util.Set<java.lang.String> getVideoMimeTypes()
getVideoProcessor
public static VideoProcessor getVideoProcessor()
hasVideo
public static boolean hasVideo(FileVersion fileVersion)
isSupported
public static boolean isSupported(java.lang.String mimeType)
isVideoSupported
public static boolean isVideoSupported(FileVersion fileVersion)
isVideoSupported
public static boolean isVideoSupported(java.lang.String mimeType)
trigger
public static void trigger(FileVersion fileVersion)
setVideoProcessor
public void setVideoProcessor(VideoProcessor videoProcessor)