2014-03-19 103 views
0

我正在尝试使用我自己的软件包名称的确切示例应用程序(https://github.com/googlecast/CastHelloText-android),并将接收器代码放在我的服务器上。无法运行chromecast应用程序

我在Chromecast开发者控制台上注册了应用程序和我的设备。

当我尝试启动应用程序,我得到这个错误,

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: [email protected] 
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 

回答

1

最有可能您的设备未正确列入白名单。您在设置Chromecast时是否选中了该框以发送序列号?看到这post万一它帮助...

+0

是的,我没有发送序列号。我会定期检查chromecast是否有效。 – dcanh121

+0

只要您无法访问端口9222进行调试,您的设备尚未被列入白名单。如果已经有一段时间了,您可能需要仔细检查您的序列号等。 –

+0

我终于将我的Chromecast列入白名单。我可以运行已发布的应用程序,但无法运行未发布的应用程序。它仍然说拒绝的设备。 – dcanh121