Class SubtitleStreamImpl
java.lang.Object
org.opencastproject.mediapackage.track.AbstractStreamImpl
org.opencastproject.mediapackage.track.SubtitleStreamImpl
- All Implemented Interfaces:
ManifestContributor,Stream,SubtitleStream
Implementation of
SubtitleStream.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.mediapackage.SubtitleStream
SubtitleStream.Adapter -
Field Summary
Fields inherited from class org.opencastproject.mediapackage.track.AbstractStreamImpl
device, encoder, frameCount, identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SubtitleStreamImplfromManifest(String streamIdHint, Node node, XPath xpath) Create a subtitle stream from the XML manifest.toManifest(Document document, MediaPackageSerializer serializer) This method returns an XML serialization of the object to be stored in the media package manifest.Methods inherited from class org.opencastproject.mediapackage.track.AbstractStreamImpl
addCommonManifestElements, getCaptureDevice, getCaptureDeviceVendor, getCaptureDeviceVersion, getEncoderLibraryVendor, getFormat, getFormatVersion, getFrameCount, getIdentifier, partialFromManifest, setCaptureDevice, setCaptureDeviceVendor, setCaptureDeviceVersion, setEncoderLibraryVendor, setFormat, setFormatVersion, setFrameCount, setIdentifierMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencastproject.mediapackage.Stream
getFrameCount, getIdentifierMethods inherited from interface org.opencastproject.mediapackage.SubtitleStream
getEncoderLibraryVendor, getFormat, getFormatVersion
-
Constructor Details
-
SubtitleStreamImpl
public SubtitleStreamImpl() -
SubtitleStreamImpl
-
-
Method Details
-
fromManifest
public static SubtitleStreamImpl fromManifest(String streamIdHint, Node node, XPath xpath) throws IllegalStateException, XPathException Create a subtitle stream from the XML manifest.- Parameters:
streamIdHint- stream ID that has to be used if the manifest does not provide one. This is the case when reading an old manifest.- Throws:
IllegalStateExceptionXPathException
-
toManifest
Description copied from interface:ManifestContributorThis method returns an XML serialization of the object to be stored in the media package manifest. It should be possible to reconstruct the object from this data.For creating
MediaPackageElements from a manifest, please useMediaPackageElementBuilder.elementFromManifest(org.w3c.dom.Node, MediaPackageSerializer). All other objects shall provide their own implementation specific reconstruction mechanism.- Specified by:
toManifestin interfaceManifestContributor- Parameters:
document- the parentserializer- the media package serializer- Returns:
- the object's xml representation
- See Also:
-