java.lang.Object | |
↳ | org.ocast.core.media.MediaEvent |
Represents a media related event notified by the remote application. Can be an update of the playback status or a change of the metadata.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MediaEvent(String name, JSONObject params) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static MediaEvent |
decode(JSONObject input)
Decodes the input json as a MediaEvent
| ||||||||||
String |
getName()
Gets the event name
| ||||||||||
JSONObject |
getParams()
Retrieves the data associated with the event
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Decodes the input json as a MediaEvent
if the json is not correctly formatted | |
JSONException |
Gets the event name
Retrieves the data associated with the event