2014-03-19 144 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