0

I am trying to the exact sample app (https://github.com/googlecast/CastHelloText-android) with my own package name, put the receiver code on my server.

I registered the app, and my device on the chromecast developer console.

When I try to launch the app, I get this error,

03-19 11:33:14.268: D/DeviceFilter(1060): Sending text message to chromecast: (ns=urn:x-cast:com.google.cast.tp.connection, dest=receiver-0) {"origin":{},"package":"gms_cast_mrp","type":"CONNECT"}
03-19 11:33:14.268: D/DeviceFilter(1060): Sending text message to chromecast: (ns=urn:x-cast:com.google.cast.receiver, dest=receiver-0) {"type":"GET_APP_AVAILABILITY","requestId":1,"appId":["69FFFAE0"]}
03-19 11:33:14.268: D/DeviceFilter(1060): onMessageReceived: gms_cast_mrp-21
03-19 11:33:14.268: D/DeviceFilter(1060): Received a protobuf: axm@426978b8
03-19 11:33:14.268: D/DeviceFilter(1060): Sending text message to chromecast: (ns=urn:x-cast:com.google.cast.tp.connection, dest=receiver-0) {"type":"CLOSE"}
03-19 11:33:14.268: D/DeviceFilter(1060): rejected device: "chromecast" (70e0019191420559fedfca4f6129b935)
03-19 11:33:14.278: D/CastSocket(1060): doTeardown with reason=0
dcanh121
  • 4,665
  • 11
  • 37
  • 84

1 Answers1

1

Most likely your device was not correctly whitelisted. Did you check the box to send its serial number when you were setting up your chromecast? See this post in case it helps ...

Community
  • 1
  • 1
Ali Naddaf
  • 16,951
  • 2
  • 21
  • 28
  • Yes I did send the serial number. I'm periodically checking chromecast if it works. – dcanh121 Mar 19 '14 at 22:42
  • As long as you cannot access port 9222 for debugging, your device has not been whitelisted. if it has been a while, you might want to double check on your serial number, etc. – Ali Naddaf Mar 19 '14 at 22:43
  • I finally got my chromecast whitelisted. I can run published apps, but cannot run unpublished apps. It still says rejected device. – dcanh121 Mar 24 '14 at 22:02
  • How did you verify that your device is whitelisted? – Ali Naddaf Mar 24 '14 at 22:04
  • I just assumed since earlier I couldn't run my own published app, but now I can – dcanh121 Mar 24 '14 at 22:05
  • did you see my comments a few lines above: As long as you cannot access port 9222 for debugging, your device has not been whitelisted. Please follow steps carefully and do not skip over any of them and then come back with more data to share. – Ali Naddaf Mar 24 '14 at 22:09