will1971 / google-cast-sdk

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

No 'Access-Control-Allow-Origin' header is present on the requested resource error found #757

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I was trying to play  
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8
got below error 

but i am able to play
http://edge-61-cl.edge.mdstrm.com/tvn-live/_definst_/smil:285a5c6dade574d5f11141
9c85c6cf17/chunklist_b800000.m3u8
in chrome cast 

below is my receiver's log

Failed to load resource: the server responded with a status of 404 (Not Found)
cast_receiver.js:40  [  0.165s] [cast.receiver.CastReceiverManager] Version: 
2.0.0.0040
cast_receiver.js:40  [  0.193s] [goog.net.WebSocket] Opening the WebSocket on 
ws://localhost:8008/v2/ipc
cast_receiver.js:28 Mixed Content: The page at 
'https://www.gstatic.com/eureka/player/player.html?skin' was loaded over HTTPS, 
but attempted to connect to the insecure WebSocket endpoint 
'ws://localhost:8008/v2/ipc'. This endpoint should be available via WSS. 
Insecure access is deprecated.
cast_receiver.js:28 Connecting to a non-secure WebSocket server from a secure 
origin is deprecated.
cast_receiver.js:40  [  0.225s] [goog.net.WebSocket] WebSocket opened on 
ws://localhost:8008/v2/ipc
media_player.js:21  [  2.934s] [cast.player.api.Player] Version: 1.0.0.25
media_player.js:21  [  2.948s] [cast.player.api.Player] load
media_player.js:21  [  2.967s] [goog.net.XhrIo] Opening Xhr [GET 
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8 -1]
media_player.js:21  [  2.974s] [goog.net.XhrIo] Will abort after 30000ms if 
incomplete, xhr2 false [GET 
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8 -1]
media_player.js:21  [  2.976s] [goog.net.XhrIo] Sending request [GET 
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8 -1]
media_player.js:37 Mixed Content: The page at 
'https://www.gstatic.com/eureka/player/player.html?skin' was loaded over HTTPS, 
but requested an insecure XMLHttpRequest endpoint 
'http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.
m3u8'. This content should also be served over HTTPS.
media_player.js:21  [  2.980s] [cast.player.core.MediaSourceManager] open
media_player.js:21  [  3.086s] [cast.player.core.MediaSourceManager] sourceopen
player.html:1 XMLHttpRequest cannot load 
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8. No 'Access-Control-Allow-Origin' header is present on the requested 
resource. Origin 'https://www.gstatic.com' is therefore not allowed access.
media_player.js:21  [  3.567s] [goog.net.XhrIo] Request complete [GET 
http://streaming.elpinguino.com:1935/live/pinguinotv_360p/chunklist_w194650448.m
3u8 0]
media_player.js:21  [  3.572s] [cast.player.api.Host] error: 
cast.player.api.ErrorCode.NETWORKAb @ media_player.js:21
media_player.js:21  [  3.582s] [cast.player.api.Player] unload
cast_receiver.js:40  [  3.702s] [cast.receiver.MediaManager] Load metadata 
error: [object Object]

Original issue reported on code.google.com by Sa.prith...@gmail.com on 9 Feb 2016 at 9:54

GoogleCodeExporter commented 8 years ago
Similar issue has been discussed in 
https://code.google.com/p/google-cast-sdk/issues/detail?id=224. If you still 
facing issues after following those suggestions, please send us feedback with 
complete receiver logs.

Original comment by vinot...@google.com on 16 Feb 2016 at 11:37

GoogleCodeExporter commented 8 years ago

Original comment by vinot...@google.com on 16 Feb 2016 at 11:37