Class VideoServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.video.service.VideoServiceImpl
- All Implemented Interfaces:
VideoService,Adaptable,Component,Extensible,TimestampedService
Default implementation of
VideoService.- Since:
- 5.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Configurationstatic final Stringstatic final Stringstatic final StringFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConvert theoriginalVideousing the givenconversionName.voiddeactivate(ComponentContext context) Deactivates the component.Returns the available registered video conversions that can be run on a Video document.getProgressStatus(String repositoryName, String docId, String conversionName) Returns the status of the video conversion with the given conversion name on the given document.getVideoConversion(String conversionName) voidlaunchAutomaticConversions(DocumentModel doc, boolean onlyMissing) Launch registered automatic video conversions on the givendoc.voidlaunchConversion(DocumentModel doc, String conversionName) Launch an asynchronously video conversion of the givendoc.voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) voidunregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrderMethods inherited from interface org.nuxeo.ecm.platform.video.service.VideoService
launchAutomaticConversions
-
Field Details
-
VIDEO_CONVERSIONS_EP
- See Also:
-
DEFAULT_VIDEO_CONVERSIONS_EP
- See Also:
-
CONFIGURATION_EP
- Since:
- 7.4
- See Also:
-
configuration
- Since:
- 7.4
-
-
Constructor Details
-
VideoServiceImpl
public VideoServiceImpl()
-
-
Method Details
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
unregisterContribution
public void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
unregisterContributionin classDefaultComponent
-
getAvailableVideoConversions
Description copied from interface:VideoServiceReturns the available registered video conversions that can be run on a Video document.- Specified by:
getAvailableVideoConversionsin interfaceVideoService
-
getAvailableVideoConversionsNames
- Specified by:
getAvailableVideoConversionsNamesin interfaceVideoService
-
getAutomaticVideoConversionsNames
- Specified by:
getAutomaticVideoConversionsNamesin interfaceVideoService- Returns:
- the list of video conversions configured to run automatically
-
launchConversion
Description copied from interface:VideoServiceLaunch an asynchronously video conversion of the givendoc.- Specified by:
launchConversionin interfaceVideoService- Parameters:
doc- the video document to be convertedconversionName- the video conversion to use
-
launchAutomaticConversions
Description copied from interface:VideoServiceLaunch registered automatic video conversions on the givendoc.If
onlyMissingistrue, launch only the automatic video conversions that are not on the video document, otherwise launch all the registered automatic video conversions- Specified by:
launchAutomaticConversionsin interfaceVideoService- Parameters:
doc- the video document to be convertedonlyMissing- whether to launch only the missing video conversions
-
convert
Description copied from interface:VideoServiceConvert theoriginalVideousing the givenconversionName.- Specified by:
convertin interfaceVideoService- Parameters:
originalVideo- the video to convertconversionName- the video conversion to use- Returns:
- a
TranscodedVideoobject of the converted video.
-
getProgressStatus
public VideoConversionStatus getProgressStatus(String repositoryName, String docId, String conversionName) Description copied from interface:VideoServiceReturns the status of the video conversion with the given conversion name on the given document.- Specified by:
getProgressStatusin interfaceVideoService
-
getVideoConversion
- Specified by:
getVideoConversionin interfaceVideoService
-
getConfiguration
- Specified by:
getConfigurationin interfaceVideoService
-