oralodabas / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Custom receiver - Connection timeout error 15 #567

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a custom receiver with nothing inside the HTML body and using the 
provided sample JS.
2. Use the provided sample Android sender code.
3. Serve the receiver app either locally on the same Wi-Fi network, or on a VPS.
4. Connect the sender app.

What is the expected output? What do you see instead?
The connection should stay connected indefinitely; or at least a long period of 
time. It instead disconnects after exactly 21 seconds since onConnected() is 
called, each time.

What version of the product are you using? On what operating system?
Android 5.1 with latest SDK on sender end. Probably latest SDK on receiver as 
well. Chromecast FW version 27946.

Please provide any additional information below.

Sender logs:

04-18 23:06:48.373  29127-29127/com.app.debug D/MainActivity﹕ 
ApplicationConnectionResultCallback.onResult: statusCode15
04-18 23:06:48.373  29127-29127/com.app.debug E/MainActivity﹕ application 
could not launch
04-18 23:06:48.373  29127-29127/com.app.debug D/MainActivity﹕ teardown

Receiver logs:

Failed to load resource: the server responded with a status of 404 (Not Found)  
 - an image url
cast.receiver.logger.setLevelValue(cast.receiver.LoggerLevel.DEBUG);  - changed 
the debug level
'HTMLHeadElement.profile' is deprecated. The reflected attribute has no effect. 
 -  (program):3
[ 27.075s] [cast.receiver.CastReceiverManager] Version: 2.0.0.0025
cast_receiver.js:13 [ 27.177s] [goog.net.WebSocket] Opening the WebSocket on 
ws://localhost:8008/v2/ipc   - cast_receiver.js:13
undefined
[ 28.360s] [goog.net.WebSocket] WebSocket opened on ws://localhost:8008/v2/ipc  
- cast_receiver.js:13 
[ 28.368s] [cast.receiver.IpcChannel] IpcChannel opened  - cast_receiver.js:13
[ 28.378s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message  - 
cast_receiver.js:13
[ 28.391s] [cast.receiver.CastReceiverManager] Underlying message bus is open  
- cast_receiver.js:13
[ 28.398s] [cast.receiver.IpcChannel] IPC message sent: 
{"namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender","data
":"{\"type\":\"ready\",\"statusText\":\"Ready to 
cast\",\"activeNamespaces\":[\"urn:x-cast:com.domain.app.debug\"],\"version\":\"
2.0.0\",\"messagesVersion\":\"1.0\"}"}  - cast_receiver.js:13
[ 28.415s] [cast.receiver.IpcChannel] IPC message sent: 
{"namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender","data
":"{\"type\":\"startheartbeat\",\"maxInactivity\":6000}"}  - cast_receiver.js:13
[ 28.448s] [cast.receiver.IpcChannel] Received message: 
{"data":"{\"applicationId\":\"259E81C4\",\"applicationName\":\"Name\",\"deviceCa
pabilities\":\"{\\\"display_supported\\\":true}\",\"launchingSenderId\":\"1715:c
om.domain.app.debug-85\",\"messagesVersion\":\"1.0\",\"sessionId\":\"E41CEBAC-D9
38-479E-B278-A468F33EC597\",\"type\":\"ready\",\"version\":\"1.12.27946\"}","nam
espace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender"}  - 
cast_receiver.js:13
[ 28.462s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message  - 
cast_receiver.js:13
[ 28.483s] [cast.receiver.CastReceiverManager] Dispatching CastReceiverManager 
system ready event  - cast_receiver.js:13
Received Ready event: 
{"id":"259E81C4","name":"Name","sessionId":"E41CEBAC-D938-479E-B278-A468F33EC597
","namespaces":["urn:x-cast:com.domain.app.debug"],"launchingSenderId":"1715:com
.domain.app.debug-85"}  - javascript.js:13
[ 28.509s] [cast.receiver.IpcChannel] IPC message sent: 
{"namespace":"urn:x-cast:com.google.cast.system","senderId":"SystemSender","data
":"{\"type\":\"setappstate\",\"statusText\":\"Application status is 
ready...\"}"}   - cast_receiver.js:13
Modernizr 2.0.6 detected. This version is known to cause issues with async 
JavaScript loaders. Please upgrade to at least 2.6: http://modernizr.com/  - 
rocket.js:4
[ 59.433s] [cast.receiver.CastReceiverManager] Dispatching shutdown event    - 
cast_receiver.js:13

Original issue reported on code.google.com by bogdan.z...@gmail.com on 18 Apr 2015 at 8:23

GoogleCodeExporter commented 9 years ago
Also worth noting, the initial StackOverflow threads:
http://stackoverflow.com/questions/29558778/cast-connection-timeout
http://stackoverflow.com/questions/29621040/custom-receiver-connection-failed

Also wanted to point out the fact that Twitch had issues in the past similar 
with this one. The user would cast the Twitch stream over to Chromecast, the 
video would play for 5-10 seconds, only to be disconnected immediately.

Original comment by bogdan.z...@gmail.com on 18 Apr 2015 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by na...@google.com on 20 Apr 2015 at 10:54

GoogleCodeExporter commented 9 years ago
Please send a feedback report and prefix it as "for Issue 567". 

Original comment by na...@google.com on 20 Apr 2015 at 11:54

GoogleCodeExporter commented 9 years ago
The app ID: 259E81C4 is invalid. Has the app been published yet? 

Original comment by na...@google.com on 22 Apr 2015 at 5:45

GoogleCodeExporter commented 9 years ago
No, it's in testing mode. It should still obviously work, otherwise how the 
hell can we test if our implementation is in good shape or not?

Original comment by bogdan.z...@gmail.com on 23 Apr 2015 at 4:53

GoogleCodeExporter commented 9 years ago
Thank you for the information. We are investigating the issue, will update the 
issue accordingly. 

Original comment by na...@google.com on 23 Apr 2015 at 6:53