public class MediaSource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Integer |
bitrate
Bitrate of media asset.
|
java.lang.String |
contentType
Content type name.
|
java.lang.Integer |
height
Height of media asset in pixels.
|
java.lang.String |
url
URL pointing to media asset.
|
java.lang.Integer |
width
Width of media asset in pixels.
|
Constructor and Description |
---|
MediaSource() |
Modifier and Type | Method and Description |
---|---|
static MediaSource |
parseWithJSONObject(JSONObject reader)
Parse object from JSON readed by JSONObject reader.
|
void |
writeJson(JsonWriter writer)
Writes object as JSON with provided JsonWriter.
|
public java.lang.String contentType
public java.lang.String url
public java.lang.Integer bitrate
public java.lang.Integer width
public java.lang.Integer height
public void writeJson(JsonWriter writer) throws java.io.IOException
writer
- java.io.IOException
public static MediaSource parseWithJSONObject(JSONObject reader) throws JSONException
reader
- JSONException