Class MediaSegments
java.lang.Object
org.opencastproject.silencedetection.api.MediaSegments
Wrapper class for holding many
MediaSegments and implements XML serialization methods.-
Constructor Summary
ConstructorsConstructorDescriptionMediaSegments(String trackId, String filePath, List<MediaSegment> mediaSegments) -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaSegmentsDeserialize from XML.Returns file Path of media file.Returns a list with media segments, that holds start and stop positions or null.Returns the Track ID.toXml()Serialize to XML.
-
Constructor Details
-
MediaSegments
public MediaSegments() -
MediaSegments
-
-
Method Details
-
getMediaSegments
Returns a list with media segments, that holds start and stop positions or null.- Returns:
- list with
MediaSegments or null
-
getTrackId
Returns the Track ID.- Returns:
- Track ID
-
getFilePath
Returns file Path of media file.- Returns:
- file path of media file
-
toXml
Serialize to XML.- Returns:
- XML as String
- Throws:
javax.xml.bind.JAXBException- if an error occures
-
fromXml
Deserialize from XML.- Parameters:
mediaSegmentsXml-MediaSegmentsXML as String- Returns:
- deserialized
MediaSegments - Throws:
javax.xml.bind.JAXBException- if an error occures
-