public class VideoProcessorUtil
extends Object
Constructor and Description |
---|
VideoProcessorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
generateVideo(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
static InputStream |
getPreviewAsStream(FileVersion fileVersion,
String type) |
static long |
getPreviewFileSize(FileVersion fileVersion,
String type) |
static InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index) |
static long |
getThumbnailFileSize(FileVersion fileVersion,
int index) |
static Set<String> |
getVideoMimeTypes() |
static VideoProcessor |
getVideoProcessor() |
static boolean |
hasVideo(FileVersion fileVersion) |
static boolean |
isSupported(String mimeType) |
static boolean |
isVideoSupported(FileVersion fileVersion) |
static boolean |
isVideoSupported(String mimeType) |
static void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
public static void generateVideo(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
public static InputStream getPreviewAsStream(FileVersion fileVersion, String type) throws Exception
Exception
public static long getPreviewFileSize(FileVersion fileVersion, String type) throws Exception
Exception
public static InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
public static long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
public static Set<String> getVideoMimeTypes()
public static VideoProcessor getVideoProcessor()
public static boolean hasVideo(FileVersion fileVersion)
public static boolean isSupported(String mimeType)
public static boolean isVideoSupported(FileVersion fileVersion)
public static boolean isVideoSupported(String mimeType)
public static void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)