Class VideoStreamImpl
java.lang.Object
org.opencastproject.mediapackage.track.AbstractStreamImpl
org.opencastproject.mediapackage.track.VideoStreamImpl
- All Implemented Interfaces:
ManifestContributor,Stream,VideoStream
Implementation of
VideoStream.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.mediapackage.VideoStream
VideoStream.Adapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Floatprotected Integerprotected Floatprotected Integerprotected Stringprotected org.opencastproject.mediapackage.track.VideoStreamImpl.ScanFields inherited from class org.opencastproject.mediapackage.track.AbstractStreamImpl
device, encoder, frameCount, identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoStreamImplfromManifest(String streamIdHint, Node node, XPath xpath) Create a video stream from the XML manifest.voidsetBitRate(Float bitRate) voidsetFrameHeight(Integer frameHeight) voidsetFrameRate(Float frameRate) voidsetFrameWidth(Integer frameWidth) voidsetScanOrder(ScanOrder scanOrder) voidsetScanType(ScanType scanType) 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.VideoStream
getCaptureDevice, getCaptureDeviceVendor, getCaptureDeviceVersion, getEncoderLibraryVendor, getFormat, getFormatVersion
-
Field Details
-
bitRate
-
frameRate
-
resolution
-
frameWidth
-
frameHeight
-
scanType
protected org.opencastproject.mediapackage.track.VideoStreamImpl.Scan scanType
-
-
Constructor Details
-
VideoStreamImpl
public VideoStreamImpl() -
VideoStreamImpl
-
-
Method Details
-
fromManifest
public static VideoStreamImpl fromManifest(String streamIdHint, Node node, XPath xpath) throws IllegalStateException, XPathException Create a video 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:
-
getBitRate
- Specified by:
getBitRatein interfaceVideoStream
-
getFrameRate
- Specified by:
getFrameRatein interfaceVideoStream
-
getFrameWidth
- Specified by:
getFrameWidthin interfaceVideoStream
-
getFrameHeight
- Specified by:
getFrameHeightin interfaceVideoStream
-
getScanType
- Specified by:
getScanTypein interfaceVideoStream
-
getScanOrder
- Specified by:
getScanOrderin interfaceVideoStream
-
setBitRate
-
setFrameRate
-
setFrameWidth
-
setFrameHeight
-
setScanType
-
setScanOrder
-