Class
caplin.streamlink

JsonPublisher

An object that can send JSON messages for a subject that StreamLink is providing

Constructor Summary

Attributes Name and Description
caplin.streamlink.JsonPublisher()

Method Summary

Attributes Name and Description
void send(Object jsonObject, caplin.streamlink.CommandListener commandListener)

Sends a Message to Liberator for the current subject

void setDiscardHandler(caplin.streamlink.JsonDiscardHandler discardHandler)

Sets an object to be called back when a discard is received for the current subject

Constructor Detail

caplin.streamlink.JsonPublisher()

Method Detail

void send(Object jsonObject, caplin.streamlink.CommandListener commandListener)

Sends a Message to Liberator for the current subject

Parameters
Object jsonObject the json object to send
caplin.streamlink.CommandListener commandListener an object with callbacks for the success/failure of sending this message

void setDiscardHandler(caplin.streamlink.JsonDiscardHandler discardHandler)

Sets an object to be called back when a discard is received for the current subject

Parameters
caplin.streamlink.JsonDiscardHandler discardHandler a JsonDiscardHandler object to receive the onDiscard callback