public class MediaInformation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_BIT_RATE |
static java.lang.String |
KEY_DURATION |
static java.lang.String |
KEY_FILENAME |
static java.lang.String |
KEY_FORMAT |
static java.lang.String |
KEY_FORMAT_LONG |
static java.lang.String |
KEY_MEDIA_PROPERTIES |
static java.lang.String |
KEY_SIZE |
static java.lang.String |
KEY_START_TIME |
static java.lang.String |
KEY_TAGS |
Constructor and Description |
---|
MediaInformation(org.json.JSONObject jsonObject,
java.util.List<StreamInformation> streams) |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getAllProperties()
Returns all properties defined.
|
java.lang.String |
getBitrate()
Returns bitrate.
|
java.lang.String |
getDuration()
Returns duration.
|
java.lang.String |
getFilename()
Returns file name.
|
java.lang.String |
getFormat()
Returns format.
|
java.lang.String |
getLongFormat()
Returns long format.
|
org.json.JSONObject |
getMediaProperties()
Returns all media properties.
|
java.lang.Long |
getNumberProperty(java.lang.String key)
Returns the media property associated with the key.
|
org.json.JSONObject |
getProperties(java.lang.String key)
Returns the media properties associated with the key.
|
java.lang.String |
getSize()
Returns size.
|
java.lang.String |
getStartTime()
Returns start time.
|
java.util.List<StreamInformation> |
getStreams()
Returns all streams.
|
java.lang.String |
getStringProperty(java.lang.String key)
Returns the media property associated with the key.
|
org.json.JSONObject |
getTags()
Returns all tags.
|
public static final java.lang.String KEY_MEDIA_PROPERTIES
public static final java.lang.String KEY_FILENAME
public static final java.lang.String KEY_FORMAT
public static final java.lang.String KEY_FORMAT_LONG
public static final java.lang.String KEY_START_TIME
public static final java.lang.String KEY_DURATION
public static final java.lang.String KEY_SIZE
public static final java.lang.String KEY_BIT_RATE
public static final java.lang.String KEY_TAGS
public MediaInformation(org.json.JSONObject jsonObject, java.util.List<StreamInformation> streams)
public java.lang.String getFilename()
public java.lang.String getFormat()
public java.lang.String getLongFormat()
public java.lang.String getDuration()
public java.lang.String getStartTime()
public java.lang.String getSize()
public java.lang.String getBitrate()
public org.json.JSONObject getTags()
public java.util.List<StreamInformation> getStreams()
public java.lang.String getStringProperty(java.lang.String key)
key
- property keypublic java.lang.Long getNumberProperty(java.lang.String key)
key
- property keypublic org.json.JSONObject getProperties(java.lang.String key)
key
- properties keypublic org.json.JSONObject getMediaProperties()
public org.json.JSONObject getAllProperties()