arabenseifer / google-cast-sdk

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

http to https issue with cast_receiver.js - #514

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. loading receiver page - using web address - 
https://www.googledrive.com/host/0B1SFWXhr-_nFSlRxOUNlRDEwX1k/
2. running from chrome - on MS 7 sp1
3.  copied results from developer console - see below additional information ...

What is the expected output? What do you see instead?
   - I am not sure - but I generally have problems accessing receiver -
     from a web address - but it seems to work better on Android ....
   - but I generally have difficulty getting receivers to operate.
     also this machine is connected directly to modem ..  

What version of the product are you using? On what operating system?

   www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js

    windows 7 sp1 - chrome - Version 40.0.2214.115 m

Please provide any additional information below.

 [blocked] The page at 'https://7c765b6570053ac1ad2e41fa224ffccdcb505cbf-www.googledrive.com/host/0B1SFWXhr-_nFSlRxOUNlRDEwX1k/' was loaded over HTTPS, but ran insecure content from 'ws://localhost:8008/v2/ipc': this content should also be loaded over HTTPS.
cast_receiver.js:25 g.opencast_receiver.js:32 g.opencast_receiver.js:42 
T.start(index):90 window.onload
cast_receiver.js:25 Uncaught SecurityError: Failed to construct 'WebSocket': An 
insecure WebSocket connection may not be initiated from a page loaded over 
HTTPS.cast_receiver.js:25 g.opencast_receiver.js:32 g.opencast_receiver.js:42 
T.start(index):90 window.onload

Original issue reported on code.google.com by marc.bel...@gmail.com on 27 Feb 2015 at 4:50

GoogleCodeExporter commented 9 years ago
I seem able to access the default receiver from webpage - but not 
a custom receiver.

Original comment by marc.bel...@gmail.com on 27 Feb 2015 at 4:52

GoogleCodeExporter commented 9 years ago
Is CORS enabled on the server where you are hosting your receiver?

Original comment by na...@google.com on 2 Mar 2015 at 6:59

GoogleCodeExporter commented 9 years ago
hoping this email is valid:

Thanks for your note - I briefly reviewed info on CORS - since I was
unfamiliar - but - answer - not sure -

I am hosting on google drive -
it is possible that I do not have my google cast sdk -
set up correctly ---

Original comment by marc.bel...@gmail.com on 4 Mar 2015 at 5:59

GoogleCodeExporter commented 9 years ago
In order to load cross origin contents you need to enable CORS in your server. 
Here's a link to the documentation that will help you understand: 
https://developers.google.com/cast/docs/player
Also, please refer to the documentation on Cast SDK here: 
https://developers.google.com/cast/
You will find sample and other relevant resources there as well.
Closing this issue for now, please let us know if you experience an issue in 
future. We would be happy to assist you.

Original comment by na...@google.com on 4 Mar 2015 at 7:36