Class VideoChangedListener
- java.lang.Object
-
- org.nuxeo.ecm.platform.video.listener.VideoChangedListener
-
- All Implemented Interfaces:
EventListener
public class VideoChangedListener extends Object implements EventListener
Light synchronous listener that schedules an asynchronous work to process the video info of a document.This
VideoInfoWork
will in turn schedule two asynchronous works to process the video storyboard and conversions.- Since:
- 5.5
-
-
Field Summary
Fields Modifier and Type Field Description static String
DISABLE_VIDEO_CONVERSIONS_GENERATION_LISTENER
-
Constructor Summary
Constructors Constructor Description VideoChangedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleEvent(Event event)
Handle the given event.protected void
resetProperties(DocumentModel doc)
protected void
scheduleAsyncProcessing(DocumentModel doc)
protected boolean
shouldProcess(DocumentModel doc, String eventName)
-
-
-
Field Detail
-
DISABLE_VIDEO_CONVERSIONS_GENERATION_LISTENER
public static final String DISABLE_VIDEO_CONVERSIONS_GENERATION_LISTENER
- Since:
- 11.1
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VideoChangedListener
public VideoChangedListener()
-
-
Method Detail
-
handleEvent
public void handleEvent(Event event)
Description copied from interface:EventListener
Handle the given event. The listener can cancel the event by callingEvent.cancel()
- Specified by:
handleEvent
in interfaceEventListener
- Parameters:
event
- the event
-
shouldProcess
protected boolean shouldProcess(DocumentModel doc, String eventName)
-
resetProperties
protected void resetProperties(DocumentModel doc) throws IOException
- Throws:
IOException
-
scheduleAsyncProcessing
protected void scheduleAsyncProcessing(DocumentModel doc)
-
-