Class VideoStreamImpl
- java.lang.Object
-
- org.opencastproject.mediapackage.track.AbstractStreamImpl
-
- org.opencastproject.mediapackage.track.VideoStreamImpl
-
- All Implemented Interfaces:
ManifestContributor
,Stream
,VideoStream
public class VideoStreamImpl extends AbstractStreamImpl implements VideoStream
Implementation ofVideoStream
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opencastproject.mediapackage.VideoStream
VideoStream.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description protected Float
bitRate
protected Integer
frameHeight
protected Float
frameRate
protected Integer
frameWidth
protected String
resolution
protected org.opencastproject.mediapackage.track.VideoStreamImpl.Scan
scanType
-
Fields inherited from class org.opencastproject.mediapackage.track.AbstractStreamImpl
device, encoder, frameCount, identifier
-
-
Constructor Summary
Constructors Constructor Description VideoStreamImpl()
VideoStreamImpl(String identifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VideoStreamImpl
fromManifest(String streamIdHint, Node node, XPath xpath)
Create a video stream from the XML manifest.Float
getBitRate()
Integer
getFrameHeight()
Float
getFrameRate()
Integer
getFrameWidth()
ScanOrder
getScanOrder()
ScanType
getScanType()
void
setBitRate(Float bitRate)
void
setFrameHeight(Integer frameHeight)
void
setFrameRate(Float frameRate)
void
setFrameWidth(Integer frameWidth)
void
setScanOrder(ScanOrder scanOrder)
void
setScanType(ScanType scanType)
Node
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, setIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opencastproject.mediapackage.Stream
getFrameCount, getIdentifier
-
Methods inherited from interface org.opencastproject.mediapackage.VideoStream
getCaptureDevice, getCaptureDeviceVendor, getCaptureDeviceVersion, getEncoderLibraryVendor, getFormat, getFormatVersion
-
-
-
-
Constructor Detail
-
VideoStreamImpl
public VideoStreamImpl()
-
VideoStreamImpl
public VideoStreamImpl(String identifier)
-
-
Method Detail
-
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:
IllegalStateException
XPathException
-
toManifest
public Node toManifest(Document document, MediaPackageSerializer serializer)
Description copied from interface:ManifestContributor
This 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
MediaPackageElement
s from a manifest, please useMediaPackageElementBuilder.elementFromManifest(org.w3c.dom.Node, MediaPackageSerializer)
. All other objects shall provide their own implementation specific reconstruction mechanism.- Specified by:
toManifest
in interfaceManifestContributor
- Parameters:
document
- the parentserializer
- the media package serializer- Returns:
- the object's xml representation
- See Also:
ManifestContributor.toManifest(org.w3c.dom.Document, org.opencastproject.mediapackage.MediaPackageSerializer)
-
getBitRate
public Float getBitRate()
- Specified by:
getBitRate
in interfaceVideoStream
-
getFrameRate
public Float getFrameRate()
- Specified by:
getFrameRate
in interfaceVideoStream
-
getFrameWidth
public Integer getFrameWidth()
- Specified by:
getFrameWidth
in interfaceVideoStream
-
getFrameHeight
public Integer getFrameHeight()
- Specified by:
getFrameHeight
in interfaceVideoStream
-
getScanType
public ScanType getScanType()
- Specified by:
getScanType
in interfaceVideoStream
-
getScanOrder
public ScanOrder getScanOrder()
- Specified by:
getScanOrder
in interfaceVideoStream
-
setBitRate
public void setBitRate(Float bitRate)
-
setFrameRate
public void setFrameRate(Float frameRate)
-
setFrameWidth
public void setFrameWidth(Integer frameWidth)
-
setFrameHeight
public void setFrameHeight(Integer frameHeight)
-
setScanType
public void setScanType(ScanType scanType)
-
setScanOrder
public void setScanOrder(ScanOrder scanOrder)
-
-