public final class VideoParser
extends java.lang.Object
Video object from a JSONObject instance.
The JSONObject properties must correspond to the Brightcove Playback API JSON response.
For for information about the Brightcove Playback API, please visit https://support.brightcove.com/overview-playback-api.
| Constructor and Description |
|---|
VideoParser() |
| Modifier and Type | Method and Description |
|---|---|
static Playlist |
buildPlaylistFromJSON(org.json.JSONObject json,
EventEmitter eventEmitter)
Builds a Video Playlist from a Brightcove Playback API json object.
|
static Video |
buildVideoFromJSON(org.json.JSONObject json,
EventEmitter eventEmitter)
Builds a Video from a Brightcove Playback API json object.
|
public static Playlist buildPlaylistFromJSON(org.json.JSONObject json, EventEmitter eventEmitter) throws org.json.JSONException, VideoParseException
json - the json objecteventEmitter - The SDK event emitter object.org.json.JSONException - the json exceptionVideoParseException - if the JSON object does not have the minimum required properties to create a Video.public static Video buildVideoFromJSON(org.json.JSONObject json, EventEmitter eventEmitter) throws org.json.JSONException, VideoParseException
json - the json objecteventEmitter - The SDK event emitter object.org.json.JSONException - the json exceptionVideoParseException - if the JSON object does not have the minimum required properties to create the Video.