Class
caplin.streamlink

KeymasterPollResponseListener

Defines the interface that should be implemented by the application to receive KeyMaster keep alive Responses.

The KeymasterPollResponseListener needs to be added to the caplin.streamlink.StreamLinkFactory create method in order to receive callbacks.

Typically an application would notify the user when onKeymasterError is called and ask them to sign in again.

A trivial implementation would be as follows :

caplin.streamlink.StreamLinkFactory.create({
        liberator_urls: "rttp://liberator1:8080",
        keymaster_url: "keymaster",
        keymaster_poll_url: "keymasterpoll",
        keymaster_poll_response_listener : {
                onKeymasterError: function (reason) {
                        console.log("KeyMaster Failed due to : " + reason);
                },
                onKeymasterResponse: function (response) {
                        console.log("KeyMaster Success. Response Message : " + response);
                }
        }
});

Constructor Summary

Attributes Name and Description
caplin.streamlink.KeymasterPollResponseListener()

Method Summary

Attributes Name and Description
void onKeymasterError(String reason)

Returns an unsuccessful KeyMaster keep alive Response.

void onKeymasterResponse(String response)

Returns a successful KeyMaster keep alive Response.

Constructor Detail

caplin.streamlink.KeymasterPollResponseListener()

Method Detail

void onKeymasterError(String reason)

Returns an unsuccessful KeyMaster keep alive Response.

Parameters
String reason The error text.

void onKeymasterResponse(String response)

Returns a successful KeyMaster keep alive Response. Implementing this method is optional.

Parameters
String response The response text.