Class AudioStreamImpl
java.lang.Object
org.opencastproject.mediapackage.track.AbstractStreamImpl
org.opencastproject.mediapackage.track.AudioStreamImpl
- All Implemented Interfaces:
AudioStream,ManifestContributor,Stream
Implementation of
AudioStream.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.mediapackage.AudioStream
AudioStream.Adapter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Integerprotected Floatprotected Integerprotected Floatprotected Floatprotected Floatprotected IntegerFields inherited from class org.opencastproject.mediapackage.track.AbstractStreamImpl
device, encoder, frameCount, identifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AudioStreamImplfromManifest(String streamIdHint, Node node, XPath xpath) Create an audio stream from the XML manifest.voidsetBitDepth(Integer bitdepth) voidsetBitRate(Float bitRate) voidsetCaptureDevice(String captureDevice) voidsetCaptureDeviceVendor(String captureDeviceVendor) voidsetCaptureDeviceVersion(String captureDeviceVersion) voidsetChannels(Integer channels) voidsetEncoderLibraryVendor(String encoderLibraryVendor) voidvoidsetFormatVersion(String formatVersion) voidsetPkLevDb(Float pkLevDb) voidsetRmsLevDb(Float rmsLevDb) voidsetRmsPkDb(Float rmsPkDb) voidsetSamplingRate(Integer samplingRate) 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, 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.AudioStream
getCaptureDevice, getCaptureDeviceVendor, getCaptureDeviceVersion, getEncoderLibraryVendor, getFormat, getFormatVersionMethods inherited from interface org.opencastproject.mediapackage.Stream
getFrameCount, getIdentifier
-
Field Details
-
bitdepth
-
channels
-
samplingrate
-
bitrate
-
pkLevDb
-
rmsLevDb
-
rmsPkDb
-
-
Constructor Details
-
AudioStreamImpl
public AudioStreamImpl() -
AudioStreamImpl
-
-
Method Details
-
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:
-
fromManifest
public static AudioStreamImpl fromManifest(String streamIdHint, Node node, XPath xpath) throws IllegalStateException, XPathException Create an audio 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
-
getBitDepth
- Specified by:
getBitDepthin interfaceAudioStream
-
getChannels
- Specified by:
getChannelsin interfaceAudioStream
-
getSamplingRate
- Specified by:
getSamplingRatein interfaceAudioStream
-
getBitRate
- Specified by:
getBitRatein interfaceAudioStream
-
getPkLevDb
- Specified by:
getPkLevDbin interfaceAudioStream
-
getRmsLevDb
- Specified by:
getRmsLevDbin interfaceAudioStream
-
getRmsPkDb
- Specified by:
getRmsPkDbin interfaceAudioStream
-
setBitDepth
-
setChannels
-
setSamplingRate
-
setBitRate
-
setPkLevDb
-
setRmsLevDb
-
setRmsPkDb
-
setCaptureDevice
- Overrides:
setCaptureDevicein classAbstractStreamImpl
-
setCaptureDeviceVersion
- Overrides:
setCaptureDeviceVersionin classAbstractStreamImpl
-
setCaptureDeviceVendor
- Overrides:
setCaptureDeviceVendorin classAbstractStreamImpl
-
setFormat
- Overrides:
setFormatin classAbstractStreamImpl
-
setFormatVersion
- Overrides:
setFormatVersionin classAbstractStreamImpl
-
setEncoderLibraryVendor
- Overrides:
setEncoderLibraryVendorin classAbstractStreamImpl
-