lihaosky / google-cast-sdk

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

Websocket in custom receiver #343

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm stuck with a bug that I can't find.

I'm using a custom receiver, I registered my application and followed all of 
the steps.

This is a copy of the log on the receiver page:

 [  0.025s] [cast.receiver.CastReceiverManager] Version: 2.0.0.0008 cast_receiver.js:18
### Application Loaded. Starting system. mpl.js:659
 [  0.028s] [cast.receiver.IpcChannel] Opening message bus websocket cast_receiver.js:18
 [  0.028s] [goog.net.WebSocket] Opening the WebSocket on ws://localhost:8008/v2/ipc cast_receiver.js:18
The page at 'https://cast.staging.tevolution.tv/receiver/' was loaded over 
HTTPS, but ran insecure content from 'ws://localhost:8008/v2/ipc': this content 
should also be loaded over HTTPS.
 cast.staging.tevolution.tv/:1
Connecting to a non-secure WebSocket server from a secure origin is deprecated. 
cast.staging.tevolution.tv/:1
 [  2.068s] [goog.net.WebSocket] An error occurred: undefined cast_receiver.js:18
 [  2.069s] [cast.receiver.IpcChannel] IpcChannel error cast_receiver.js:18
 [  2.070s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message cast_receiver.js:18
 [  2.070s] [goog.net.WebSocket] The WebSocket on ws://localhost:8008/v2/ipc closed. cast_receiver.js:18
 [  2.071s] [cast.receiver.IpcChannel] IpcChannel closed cast_receiver.js:18
 [  2.071s] [cast.receiver.CastMessageBus] Dispatching CastMessageBus message cast_receiver.js:18
 [  2.071s] [goog.net.WebSocket] The WebSocket disconnected unexpectedly: undefined cast_receiver.js:18
 [  2.071s] [goog.net.WebSocket] Seconds until next reconnect attempt: 1 cast_receiver.js:18

And then it repeats the same thing!!
Help me please.

P.S. I tried with different samples for both the sender and the receiver.

Original issue reported on code.google.com by majd.tev...@gmail.com on 25 Jul 2014 at 9:13

GoogleCodeExporter commented 9 years ago
Are you saying that you get the same error even if you use one of the receivers 
that is in our sample projects on GitHub?

Original comment by anad...@google.com on 25 Jul 2014 at 2:15

GoogleCodeExporter commented 9 years ago
I had another problem at the same time, a problem with the sender, the program 
is being always terminated with "launch error" and without any type of useful 
information.

I'm trying now with this sample 
https://github.com/googlecast/CastMediaPlayerStreamingDRM and I don't see the 
error on the receiver page anymore, but the launch error is always here and I 
get a sentence like "Oups! Petit problème..".

I followed the instructions step-by-step and my application is registered.
I'm so lost, thank you for helping me

Original comment by majd.tev...@gmail.com on 25 Jul 2014 at 2:44

GoogleCodeExporter commented 9 years ago
You need to provide more info om the error you are getting in the sender. I 
suggest you start with a simpler sender/receiver to cast simple media (nothing 
with DRM or HLS) and then make sure that works. Once you get that working, you 
can go back to the more complex ones and hopefully by then you have gained 
enough experience to get things working.

Original comment by anad...@google.com on 25 Jul 2014 at 2:47

GoogleCodeExporter commented 9 years ago
I'm also trying to re-publish my app because I can't find it on 
http://www.google.com/intl/fr_fr/chrome/devices/chromecast/apps.html

I had created another one using a Styled Media receiver and I can always find it

Original comment by majd.tev...@gmail.com on 25 Jul 2014 at 2:49

GoogleCodeExporter commented 9 years ago
If your app is not yet working, why are you publishing it??

Original comment by anad...@google.com on 25 Jul 2014 at 2:50

GoogleCodeExporter commented 9 years ago
Ok I unpublished it, I tried already with a real simple sender/receiver app but 
the problem is that I can't find where the problem is!

Maybe it's connectig the sender to the receiver??

Original comment by majd.tev...@gmail.com on 25 Jul 2014 at 2:57

GoogleCodeExporter commented 9 years ago
You need to get help on StackOverflow, this is for SDK issues.

Original comment by anad...@google.com on 25 Jul 2014 at 2:59

GoogleCodeExporter commented 9 years ago
Ok thanks.

Original comment by majd.tev...@gmail.com on 25 Jul 2014 at 3:00