public class VideoThumbnailPlugin extends Object implements PostCreateStoragePlugin, PostUpdateStoragePlugin
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_MAX_FILE_SIZE_MB |
Constructor and Description |
---|
VideoThumbnailPlugin(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deletes the directory that holds the FFmpeg binary.
|
CreateStorageResponse |
process(CreateStorageResponse input)
Processes the
CreateStorageResponse . |
UpdateStorageResponse |
process(UpdateStorageResponse input)
Processes the
UpdateStorageResponse . |
void |
setMaxFileSizeMB(int maxFileSizeMB) |
protected static final int DEFAULT_MAX_FILE_SIZE_MB
public VideoThumbnailPlugin(org.osgi.framework.BundleContext bundleContext) throws IOException
IOException
public void destroy()
Called by Blueprint.
public CreateStorageResponse process(CreateStorageResponse input) throws PluginExecutionException
PostCreateStoragePlugin
CreateStorageResponse
.
process
in interface PostCreateStoragePlugin
input
- the CreateStorageResponse
to processCreateStorageResponse
to pass to the next PostCreateStoragePlugin
PluginExecutionException
- if an error occurs during processingpublic UpdateStorageResponse process(UpdateStorageResponse input) throws PluginExecutionException
PostUpdateStoragePlugin
UpdateStorageResponse
.process
in interface PostUpdateStoragePlugin
input
- the UpdateStorageResponse
to processUpdateStorageResponse
to pass to the next PostUpdateStoragePlugin
PluginExecutionException
- if an error occurs during processingpublic void setMaxFileSizeMB(int maxFileSizeMB)
This work is licensed under a Creative Commons Attribution 4.0 International License.