oralodabas / google-cast-sdk

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

Mobile Chrome 'website restriction' error with Default Receiver #543

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Launch Nexus 5 Chrome browser.

2. Goto this url
http://www.worldsurfleague.com/posts/104483/rip-curl-pro-bells-beach-trailer

3. Click the overlay 'Play' button, then wait for the 'cast' button show up.

4. After you click the 'cast' button, show error "website restriction".

What is the expected output? What do you see instead?
Expected: Default receiver should be able to play that video stream.
Current: There's no mobile Chrome m3u8 http request "Origin" header (even it is 
cross-domain). Also since Default Receiver is hosted on 
'https://www.gstatic.com', our server will only return allow from 
'http://www.worldsurfleague.com'.

What version of the product are you using? On what operating system?
Nexus 5 Android 5.1.0, native Chrome browser 41.0.2272.94.

Please provide any additional information below.
This is m3u8 stream
http://nlds14.cdnak.neulion.com/nlds_vod/wsl/vod/2015/03/13/bb15_60promo_v6/bb15
_60promo_v6_1_android.mp4.m3u8

It is playable on Default Receiver
curl -H "Origin: https://www.gstatic.com" -v 
"http://nlds14.cdnak.neulion.com/nlds_vod/wsl/vod/2015/03/13/bb15_60promo_v6/bb1
5_60promo_v6_1_android.mp4.m3u8"

However, mobile Chrome blocks the 'loadCommand' to Chromecast device.

Original issue reported on code.google.com by nicevinc...@gmail.com on 20 Mar 2015 at 9:05

GoogleCodeExporter commented 9 years ago
Casting from Chrome on Android is currently not supported. If you want to cast 
from Android, use screen mirroring or a Cast-ready application.

Original comment by and...@google.com on 20 Mar 2015 at 9:20

GoogleCodeExporter commented 9 years ago
Okay, since it is not supported, is there a way to disable the 'Cast' icon 
showing up in the default <video> tag skin on Android Chrome browser?

I don't want the user to click the 'Cast' button and it leads to 'site 
restriction' error message.

Original comment by nicevinc...@gmail.com on 23 Mar 2015 at 2:34

GoogleCodeExporter commented 9 years ago
It's not fully supported. It will work on some players, assuming that CORS has 
been set up properly (see https://developers.google.com/cast/docs/player). You 
can try modifying your player's UI, but Chromium may have some problems with it 
(https://code.google.com/p/chromium/issues/detail?id=459083).

Original comment by and...@google.com on 25 Mar 2015 at 9:58