Skip to content

Instantly share code, notes, and snippets.

@jbergler
Created April 27, 2014 15:56
Show Gist options
  • Save jbergler/11349084 to your computer and use it in GitHub Desktop.
Save jbergler/11349084 to your computer and use it in GitHub Desktop.
/**
* initialization
*/
function initializeCastApi() {
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
var apiConfig = new chrome.cast.ApiConfig(sessionRequest,sessionListener,receiverListener);
chrome.cast.initialize(apiConfig, onInitSuccess, onError);
};
/**
* initialization success callback
*/
function onInitSuccess() {
appendMessage("init success");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment