Class MediaInspector
java.lang.Object
org.opencastproject.inspection.ffmpeg.MediaInspector
Contains the business logic for media inspection. Its primary purpose is to decouple the inspection logic from all
OSGi/MH job management boilerplate.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenrich(MediaPackageElement element, boolean override, Map<String, String> options) Enriches the given element's mediapackage.inspectTrack(URI trackURI, Map<String, String> options) Inspects the element that is passed in as uri.
-
Constructor Details
-
MediaInspector
-
-
Method Details
-
inspectTrack
Inspects the element that is passed in as uri.- Parameters:
trackURI- the element uri- Returns:
- the inspected track
- Throws:
MediaInspectionException- if inspection fails
-
enrich
public MediaPackageElement enrich(MediaPackageElement element, boolean override, Map<String, String> options) throws MediaInspectionExceptionEnriches the given element's mediapackage.- Parameters:
element- the element to enrichoverride-trueto override existing metadata- Returns:
- the enriched element
- Throws:
MediaInspectionException- if enriching fails
-