-
public class MediaInformationMedia information class.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringKEY_FORMAT_PROPERTIESpublic final static StringKEY_FILENAMEpublic final static StringKEY_FORMATpublic final static StringKEY_FORMAT_LONGpublic final static StringKEY_START_TIMEpublic final static StringKEY_DURATIONpublic final static StringKEY_SIZEpublic final static StringKEY_BIT_RATEpublic final static StringKEY_TAGSprivate final List<StreamInformation>streamsprivate final List<Chapter>chapters
-
Constructor Summary
Constructors Constructor Description MediaInformation(JSONObject jsonObject, List<StreamInformation> streams, List<Chapter> chapters)
-
Method Summary
Modifier and Type Method Description List<StreamInformation>getStreams()Returns all streams. List<Chapter>getChapters()Returns all chapters. StringgetFilename()Returns file name. StringgetFormat()Returns format. StringgetLongFormat()Returns long format. StringgetDuration()Returns duration. StringgetStartTime()Returns start time. StringgetSize()Returns size. StringgetBitrate()Returns bitrate. JSONObjectgetTags()Returns all tags. StringgetStringProperty(String key)Returns the property associated with the key. LonggetNumberProperty(String key)Returns the property associated with the key. JSONObjectgetProperty(String key)Returns the property associated with the key. StringgetStringFormatProperty(String key)Returns the format property associated with the key. LonggetNumberFormatProperty(String key)Returns the format property associated with the key. JSONObjectgetFormatProperty(String key)Returns the format property associated with the key. JSONObjectgetFormatProperties()Returns all format properties defined. JSONObjectgetAllProperties()Returns all properties defined. -
-
Constructor Detail
-
MediaInformation
MediaInformation(JSONObject jsonObject, List<StreamInformation> streams, List<Chapter> chapters)
-
-
Method Detail
-
getStreams
List<StreamInformation> getStreams()
Returns all streams.
-
getChapters
List<Chapter> getChapters()
Returns all chapters.
-
getFilename
String getFilename()
Returns file name.
-
getLongFormat
String getLongFormat()
Returns long format.
-
getDuration
String getDuration()
Returns duration.
-
getStartTime
String getStartTime()
Returns start time.
-
getBitrate
String getBitrate()
Returns bitrate.
-
getTags
JSONObject getTags()
Returns all tags.
-
getStringProperty
String getStringProperty(String key)
Returns the property associated with the key.
- Parameters:
key- property key
-
getNumberProperty
Long getNumberProperty(String key)
Returns the property associated with the key.
- Parameters:
key- property key
-
getProperty
JSONObject getProperty(String key)
Returns the property associated with the key.
- Parameters:
key- property key
-
getStringFormatProperty
String getStringFormatProperty(String key)
Returns the format property associated with the key.
- Parameters:
key- property key
-
getNumberFormatProperty
Long getNumberFormatProperty(String key)
Returns the format property associated with the key.
- Parameters:
key- property key
-
getFormatProperty
JSONObject getFormatProperty(String key)
Returns the format property associated with the key.
- Parameters:
key- property key
-
getFormatProperties
JSONObject getFormatProperties()
Returns all format properties defined.
-
getAllProperties
JSONObject getAllProperties()
Returns all properties defined.
-
-
-
-