0

I'm trying to get the Sample Media Player App working, and have run into a problem. I have whitelisted my two URLs, and have gotten the app to run on my Android device without any issues.

My problem starts when actually attempting to cast the sample media. My Chromecast correctly displays as an option, however choosing it from the list does not yield any results on the Chromecast, itself (although it appears that my Android device connects without any issues). Could this be caused by my whitelisted URL not ending in ".html"? Here (link removed) is my page, for what it's worth.

Any help would be greatly appreciated.

Joreyaesh
  • 162
  • 1
  • 11

2 Answers2

2

Please check if the answer in this question (Chrome-cast Sample App doesn't work) can solve your problem.

Basically you need to set AppID in your receiver.html as well.

Community
  • 1
  • 1
Qiusheng
  • 300
  • 1
  • 11
  • That worked, thanks for the link! I hadn't noticed that they had updated the receiver on sample app. – Joreyaesh Jul 31 '13 at 15:44
  • Oh, and I also renamed the "receiver.html" file to "development-page" (note the lack of the .html) in the app's receiver folder to match my site URL. I'm not sure if this actually made any difference, but thought it might be worth mentioning. – Joreyaesh Jul 31 '13 at 15:50
  • does the receiver url need to be an internet url? I have registered site on my local lan machine something like http:///chromecast/rx.html. I have tested the access to the page too. thanks – Ajaxe Aug 23 '13 at 13:53
0

I think the problem is in MediaRouteHelper.registerMinimalMediaRouteProvider(mCastContext, this);

try to cheak its value, wheter it is returning true or false

if its returning false then it will not run properly

Rohit
  • 2,646
  • 6
  • 27
  • 52