USER: vshah
the sample code, for example, simply passes this URL to chromecast to play "big buck bunny"http://clips.vorwaerts-gmbh.de/VfE_html5.mp4
if smb shares are supported by chromecast, then i see no reason why it shouldn't work.

Also a great idea by user blackdogdeek

Quote:

Forgive my possible ignorance, but couldn't you just run a web server on your smb box and give the URL of your local vid stash?

To permit your Chrome sender application to use the SDK, you must register the application's domain in the Google Cast extension for Chrome.

Be sure you are running Chrome version 28 or later.
If you haven't restarted Chrome in a while you may be running an older version; restarting will update Chrome automatically.
In the Chrome omnibox, enter chrome://extensions, and check the Developer mode checkbox to enable developer mode.
Install the Chrome extension for Google Cast.
On the Cast icon in Chrome's upper right corner, click four (4) times.
In the Cast extension, scroll to the Developer options.
In the Cast SDK additional domains field, click Add and enter the domain of your application, for example, "www.mydomain.com."
Code your application's HTML tag as follows:
<html data-cast-api-enabled=”true”>

I couldnt get the above to work but I found it in the options by removing the display:none from <section ng-show="doubleClicks &gt; 1" style="">

So someone who gets "White Listed" could try sending a URL to the ChromeCast?

Edit: So someone can start making a webpage that uses this correctly and just add that domain to the Chromecast extensions whitelist?

Adding the domain is just a way of telling your extension that the domain is serving a chromecast receiver. They haven't opened the floodgates for developers so they are keep everything controlled, hence the whitelist process. You do "send" a URL to the chromecast but it's really just for the chrome extension to know that a websocket can be opened for the receiver site and the client (the chrome extension).

XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality.Are you a developer?