1

When I try to write my custom app, I am asked to white list the device. But how can I run the sample apps without whitelisting my chromecast device.

Sample apps here, https://github.com/googlecast/CastHelloText-android

dcanh121
  • 4,665
  • 11
  • 37
  • 84

2 Answers2

0

First you need to add the app on your Google Cast SDK Developer Console. Once it is added, click on your application and publish the app. As stated:

When published, your application can be launched on any device. When unpublished, your application can only be launched on your authorized devices.

Phil
  • 35,852
  • 23
  • 123
  • 164
  • 1
    Yes, how can I launch when its unpublished? – dcanh121 Mar 19 '14 at 18:56
  • Hi Phil, I've submitted my iOS app integrated with chromecast. Its working fine in my chromecast device, which I've registered in the google developer console, but not with the other devices(customers were not able to use the app to cast to their tv with their chromecast device). In the developer console, we gave a url for the chromecast.html(receiver page) which is actually a http link, Is it mandatory to use HTTPS(secured) link to get it work for all chromecast device ? Would that be the reason why my customers were not able to cast the video to their chromecast device ? – Pradeep Rajkumar Apr 14 '14 at 13:51
  • @PradeepRajkumar this is an entirely new question. Click [*Ask a new Question*](http://stackoverflow.com/questions/ask) and paste this text on the edit page. – Phil Apr 14 '14 at 14:05
0

If you want to use your own receiver, you have no choice but to whitelist your device for your app (unless you decide to publish your app which is not a good idea). You can use the app id that is provided in that project and that refers to a published on but that is not your receiver anymore.

Ali Naddaf
  • 16,951
  • 2
  • 21
  • 28
  • 1
    Where can I find the instructions for running an unpublished app, using the default receiver, on a non-whitelisted device? – CommonsWare Mar 19 '14 at 21:07
  • 1
    Google should improve documentation for Chromecast – dcanh121 Mar 19 '14 at 21:18
  • CommonsWare: for Default receiver, you can use the app id's that various platforms expose, see https://developers.google.com/cast/docs/receiver_apps#default – Ali Naddaf Mar 19 '14 at 21:29
  • dcanh121: if you have suggestions that are specific or concrete, please open an Enhancement issue on our tracker or post on our community, otherwise a generic sentence like "improve your documentation" is not considered valuable. – Ali Naddaf Mar 19 '14 at 21:31
  • 1
    "you can use the app id's that various platforms expose" -- OK, and what about `RemotePlaybackClient` apps that do not specify a receiver, nor use/need the Cast SDK? – CommonsWare Mar 19 '14 at 22:04
  • @dcanh121: BTW, [here is the Google Cast issue tracker](https://code.google.com/p/google-cast-sdk/issues/list). – CommonsWare Mar 19 '14 at 22:05
  • @AliNaddaf When I try to run the app, I get this error http://stackoverflow.com/q/22515205/563306 Perhaps you can help me. Thanks. – dcanh121 Mar 19 '14 at 22:12
  • @dcanh121: I already left a comment there in that post, did you follow that? – Ali Naddaf Mar 19 '14 at 22:16
  • Never mind, `RemotePlaybackClient` works fine with non-whitelisted devices. My apologies. – CommonsWare Mar 19 '14 at 22:21