Interface VideoService
-
- All Known Implementing Classes:
VideoServiceImpl
public interface VideoService
Service to asynchronously launch and monitor video conversions.- Since:
- 5.5
- Author:
- Thomas Roger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TranscodedVideoconvert(Video originalVideo, String conversionName)Convert theoriginalVideousing the givenconversionName.Collection<VideoConversion>getAvailableVideoConversions()Returns the available registered video conversions that can be run on a Video document.ConfigurationgetConfiguration()VideoConversionStatusgetProgressStatus(String repositoryName, String docId, String conversionName)Returns the status of the video conversion with the given conversion name on the given document.VideoConversiongetVideoConversion(String conversionName)default voidlaunchAutomaticConversions(DocumentModel doc)Launch all the registered automatic video conversions on the givendoc.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.
-
-
-
Method Detail
-
getAvailableVideoConversions
Collection<VideoConversion> getAvailableVideoConversions()
Returns the available registered video conversions that can be run on a Video document.
-
launchConversion
void launchConversion(DocumentModel doc, String conversionName)
Launch an asynchronously video conversion of the givendoc.- Parameters:
doc- the video document to be convertedconversionName- the video conversion to use
-
launchAutomaticConversions
default void launchAutomaticConversions(DocumentModel doc)
Launch all the registered automatic video conversions on the givendoc.- Parameters:
doc- the video document to be converted
-
launchAutomaticConversions
void launchAutomaticConversions(DocumentModel doc, boolean onlyMissing)
Launch 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- Parameters:
doc- the video document to be convertedonlyMissing- whether to launch only the missing video conversions- Since:
- 11.5
-
convert
TranscodedVideo convert(Video originalVideo, String conversionName)
Convert theoriginalVideousing the givenconversionName.- Parameters:
originalVideo- the video to convertconversionName- the video conversion to use- Returns:
- a
TranscodedVideoobject of the converted video.
-
getProgressStatus
VideoConversionStatus getProgressStatus(String repositoryName, String docId, String conversionName)
Returns the status of the video conversion with the given conversion name on the given document.- Since:
- 5.7.3
-
getVideoConversion
VideoConversion getVideoConversion(String conversionName)
- Since:
- 7.2
-
getConfiguration
Configuration getConfiguration()
- Since:
- 7.4
-
-