com.liferay.portlet.documentlibrary.util
Class VideoProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.VideoProcessorUtil
public class VideoProcessorUtil
- extends Object
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 sourceFileVersion,
FileVersion destinationFileVersion)
throws Exception
- Throws:
Exception
getPreviewAsStream
public static InputStream getPreviewAsStream(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
getPreviewFileSize
public static long getPreviewFileSize(FileVersion fileVersion,
String type)
throws Exception
- Throws:
Exception
getThumbnailAsStream
public static InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws Exception
- Throws:
Exception
getVideoMimeTypes
public static Set<String> getVideoMimeTypes()
getVideoProcessor
public static VideoProcessor getVideoProcessor()
hasVideo
public static boolean hasVideo(FileVersion fileVersion)
isSupported
public static boolean isSupported(String mimeType)
isVideoSupported
public static boolean isVideoSupported(FileVersion fileVersion)
isVideoSupported
public static boolean isVideoSupported(String mimeType)
trigger
public static void trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
setVideoProcessor
public void setVideoProcessor(VideoProcessor videoProcessor)
- Deprecated. As of 6.2.0