public interface VideoProcessor
Modifier and Type | Field and Description |
---|---|
static String |
THUMBNAIL_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement) |
void |
generateVideo(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
InputStream |
getPreviewAsStream(FileVersion fileVersion,
String type) |
long |
getPreviewFileSize(FileVersion fileVersion,
String type) |
InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index) |
long |
getThumbnailFileSize(FileVersion fileVersion,
int index) |
Set<String> |
getVideoMimeTypes() |
boolean |
hasVideo(FileVersion fileVersion) |
void |
importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement) |
boolean |
isSupported(String mimeType) |
boolean |
isVideoSupported(FileVersion fileVersion) |
boolean |
isVideoSupported(String mimeType) |
void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
static final String THUMBNAIL_TYPE
void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) throws Exception
Exception
void generateVideo(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
InputStream getPreviewAsStream(FileVersion fileVersion, String type) throws Exception
Exception
long getPreviewFileSize(FileVersion fileVersion, String type) throws Exception
Exception
InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
Set<String> getVideoMimeTypes()
boolean hasVideo(FileVersion fileVersion)
void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception
Exception
boolean isSupported(String mimeType)
boolean isVideoSupported(FileVersion fileVersion)
boolean isVideoSupported(String mimeType)
void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)