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
VideoInfoWorkwill 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 StringDISABLE_VIDEO_CONVERSIONS_GENERATION_LISTENER
-
Constructor Summary
Constructors Constructor Description VideoChangedListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleEvent(Event event)Handle the given event.protected voidresetProperties(DocumentModel doc)protected voidscheduleAsyncProcessing(DocumentModel doc)protected booleanshouldProcess(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:EventListenerHandle the given event. The listener can cancel the event by callingEvent.cancel()- Specified by:
handleEventin 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)
-
-