buildVideoFromJSON

open fun buildVideoFromJSON(json: JSONObject, eventEmitter: EventEmitter): Video

Builds a Video from a Brightcove Playback API json object.

Return

the video

Parameters

json

the json object

eventEmitter

The SDK event emitter object.

See also

<a href="https://support.brightcove.com/overview-playback-api">https://support.brightcove.com/overview-playback-api</a>

Throws

JSONException

the json exception

if the JSON object does not have the minimum required properties to create the Video.