KWChromecast Object

Functions

Type Signature
bool stopListening()
This function will return true if it successfully prompted the device service to stop Chromecasting.
bool startListening()
This function will return true if it successfully prompted the device service to start Chromecasting.
string sendMessage(string deviceId, string msg)
This function can be used to send a message to the KioWare Chromecast iframe, which is received via your onMessage function in the content.
string setURL(string deviceId, string url)
This function can be used to set the KioWare Chromecast iframe to the URL specified.
string setFrameContent(string deviceId, string content)
This function can be used to set the KioWare Chromecast iframe HTML content so that you can send messages to the content.
string getMessages(string deviceId)
This function returns a JavaScript Object Notation (JSON) array of strings as messages sent back from your content in the KioWare Chromecast iframe.
string getPendingMessages(string deviceId)
This function can be used to return a JSON array of GUID strings of currently pending messages.
string getSuccessfulMessages(string deviceId)
This function can be used to return a JSON array of GUID strings of successfully queued messages.
string getFailedMessages(string deviceId)
This function can be used to return a JSON array of GUID strings of failed messages.
string getDeviceIds()
This function can be used to return a JSON array of KioWare Chromecast device IDs.
string getStatus(string deviceId)
This function can be used to return the status string of the KioWare Chromecast device (current state of the Chromecast).