I am creating a simple web application that I want to display on my TV using the Google Cast SDK, Chrome browser and Chromecast. I know with the Chromecast extension for the Chrome browser, I can make a tab on the Chromecast device that works fine from my laptop. However, I want this exact same functionality, but available on iOS devices (iPads and iPhones) that work with the Chrome browser.
With Chrome v36, Cast seems to have baked into the iOS version of Chrome. I put the following instructions into the Google Cast SDK: https://developers.google.com/cast/docs/chrome_sender . I can get my iPad to connect to Chromecast, but when I try to transfer the URL to a web page ...
var mediaInfo = new chrome.cast.media.MediaInfo('http://google.com'); var request = new chrome.cast.media.LoadRequest(mediaInfo); session.loadMedia(request, onMediaDiscovered.bind(this, 'loadMedia'), onMediaError);
I get an error message ...
INVALID_PARAMETER
I found other, somewhat outdated examples, saying that I can create my own Cast receiver that contains an iFrame and displays the page there, but I don't want to create a custom receiver.
Can I only do this with Cast Sender?
source share