Package org.opencastproject.caption.api
Interface CaptionService
public interface CaptionService
Provides captioning support. This service makes use of
CaptionConverter instances that need to be registered
in the OSGi registry.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.Jobconvert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat) Converts captions from one format to another.org.opencastproject.job.api.Jobconvert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat, String language) Converts captions from one format to another.String[]getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format) Returns list of languages available in captions (if such information is stored).
-
Field Details
-
JOB_TYPE
- See Also:
-
-
Method Details
-
convert
org.opencastproject.job.api.Job convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat) throws UnsupportedCaptionFormatException, CaptionConverterException, org.opencastproject.mediapackage.MediaPackageException Converts captions from one format to another. Language parameter is used for those formats that store information about language.- Parameters:
input- MediaPackageElement containing captionsinputFormat- format of imported captionsoutputFormat- format of exported captions- Throws:
UnsupportedCaptionFormatException- if there is no matching engine registered for given input or outputCaptionConverterException- if exception occurs while convertingorg.opencastproject.mediapackage.MediaPackageException- if the catalog is invalid
-
convert
org.opencastproject.job.api.Job convert(org.opencastproject.mediapackage.MediaPackageElement input, String inputFormat, String outputFormat, String language) throws UnsupportedCaptionFormatException, CaptionConverterException, org.opencastproject.mediapackage.MediaPackageException Converts captions from one format to another. Language parameter is used for those formats that store information about language.- Parameters:
input- MediaPackageElement containing captionsinputFormat- format of imported captionsoutputFormat- format of exported captionslanguage- language of captions- Throws:
UnsupportedCaptionFormatException- if there is no matching engine registered for given input or outputCaptionConverterException- if exception occurs while convertingorg.opencastproject.mediapackage.MediaPackageException- if the catalog is invalid
-
getLanguageList
String[] getLanguageList(org.opencastproject.mediapackage.MediaPackageElement input, String format) throws UnsupportedCaptionFormatException, CaptionConverterException Returns list of languages available in captions (if such information is stored).- Parameters:
input- Catalog containing captionsformat- captions' format- Returns:
- Array of languages available in captions
- Throws:
UnsupportedCaptionFormatException- if there is no matching engine registered for given input or outputCaptionConverterException- if parser encounters exception
-