-
public class StreamInformationStream information class.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKEY_INDEXpublic final static StringKEY_TYPEpublic final static StringKEY_CODECpublic final static StringKEY_CODEC_LONGpublic final static StringKEY_FORMATpublic final static StringKEY_WIDTHpublic final static StringKEY_HEIGHTpublic final static StringKEY_BIT_RATEpublic final static StringKEY_SAMPLE_RATEpublic final static StringKEY_SAMPLE_FORMATpublic final static StringKEY_CHANNEL_LAYOUTpublic final static StringKEY_SAMPLE_ASPECT_RATIOpublic final static StringKEY_DISPLAY_ASPECT_RATIOpublic final static StringKEY_AVERAGE_FRAME_RATEpublic final static StringKEY_REAL_FRAME_RATEpublic final static StringKEY_TIME_BASEpublic final static StringKEY_CODEC_TIME_BASEpublic final static StringKEY_TAGS
-
Constructor Summary
Constructors Constructor Description StreamInformation(JSONObject jsonObject)
-
Method Summary
Modifier and Type Method Description LonggetIndex()Returns stream index. StringgetType()Returns stream type. StringgetCodec()Returns stream codec. StringgetCodecLong()Returns stream codec in long format. StringgetFormat()Returns stream format. LonggetWidth()Returns width. LonggetHeight()Returns height. StringgetBitrate()Returns bitrate. StringgetSampleRate()Returns sample rate. StringgetSampleFormat()Returns sample format. StringgetChannelLayout()Returns channel layout. StringgetSampleAspectRatio()Returns sample aspect ratio. StringgetDisplayAspectRatio()Returns display aspect ratio. StringgetAverageFrameRate()Returns display aspect ratio. StringgetRealFrameRate()Returns real frame rate. StringgetTimeBase()Returns time base. StringgetCodecTimeBase()Returns codec time base. JSONObjectgetTags()Returns all tags. StringgetStringProperty(String key)Returns the stream property associated with the key. LonggetNumberProperty(String key)Returns the stream property associated with the key. JSONObjectgetProperty(String key)Returns the stream property associated with the key. JSONObjectgetAllProperties()Returns all stream properties defined. -
-
Constructor Detail
-
StreamInformation
StreamInformation(JSONObject jsonObject)
-
-
Method Detail
-
getCodecLong
String getCodecLong()
Returns stream codec in long format.
-
getBitrate
String getBitrate()
Returns bitrate.
-
getSampleRate
String getSampleRate()
Returns sample rate.
-
getSampleFormat
String getSampleFormat()
Returns sample format.
-
getChannelLayout
String getChannelLayout()
Returns channel layout.
-
getSampleAspectRatio
String getSampleAspectRatio()
Returns sample aspect ratio.
-
getDisplayAspectRatio
String getDisplayAspectRatio()
Returns display aspect ratio.
-
getAverageFrameRate
String getAverageFrameRate()
Returns display aspect ratio.
-
getRealFrameRate
String getRealFrameRate()
Returns real frame rate.
-
getTimeBase
String getTimeBase()
Returns time base.
-
getCodecTimeBase
String getCodecTimeBase()
Returns codec time base.
-
getTags
JSONObject getTags()
Returns all tags.
-
getStringProperty
String getStringProperty(String key)
Returns the stream property associated with the key.
- Parameters:
key- property key
-
getNumberProperty
Long getNumberProperty(String key)
Returns the stream property associated with the key.
- Parameters:
key- property key
-
getProperty
JSONObject getProperty(String key)
Returns the stream property associated with the key.
- Parameters:
key- property key
-
getAllProperties
JSONObject getAllProperties()
Returns all stream properties defined.
-
-
-
-