New issue
Advanced search Search tips

Issue 632244 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jul 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: ----



Sign in to add a comment

Cast from is chrome fro iOS not working anymore.

Reported by mark....@gmail.com, Jul 28 2016

Issue description

Chrome Version (from "Settings > About Google Chrome"):
Device Type: (iPad 2, iPhone 4, etc)
URLs (if applicable): 52.0.2743.84

At version 36.0.1985.49 you have added chromecast support, frome changelog:

"Allows mobile sites that have added Cast support to work with your Cast-enabled device."

Now it's broken. Can you give me information abut future plans of this feature? 

 

Comment 1 by baxley@chromium.org, Jul 28 2016

Could you provide some details about what website used to work, but doesn't now?

Could you also provide the steps you performed, what happened, and then what you expected to happen?

Comment 2 by mark....@gmail.com, Jul 28 2016

I thought that answer will be "We disabled it becouse of ... (some
reason)", thats why i didn't add more information and test steps.

So here is test steps:
1. Open http://infinitybit.net/cast_example/index.html in Chrome (desktop).
2. If you have chromecast, in textarea you will see:
"init success"
"receiver found"
2. Click "launch app", and chrome extension will appears.
3. After that you will be able to cast video to chromecast.

Lets try it on Chrome for iOS:
1. Open http://infinitybit.net/cast_example/index.html in Chrome iOS (my
device is: iPhone 6s, iOS 9.3.2)
2. Nothig will appears in textarea
3. Click "launch app", and you will see "launching app..."... and nothing
will be nothing happens
4. You cannot cast anything via Chrome for iOS

It is broken for over an year. For exaple here is a questin on stackoweflow:
http://stackoverflow.com/questions/38579912/chromecast-sender-app-on-chrome-mobile-receiverlistener-doesnt-get-called

Comment 4 by jif@chromium.org, Jul 29 2016

Owner: olivierrobin@chromium.org
Status: Assigned (was: Unconfirmed)
Status: WontFix (was: Assigned)
Hi

Cast is still supported on Chrome for iOS (you can test it on Youtube and cast your video).


The initialization of the cast device must be done with using __onGCastApiAvailable API as presented on the cast web site: https://developers.google.com/cast/docs/chrome_sender

Initialization

To determine if the API is available and initialize it, you can provide the callback function window['__onGCastApiAvailable'] before the Cast API loads. It is invoked with loaded == true if the API loads, or with errorInfo when load fails.


The legacy way (test chrome.cast.isAvailable) cannot work on Chrome for iOS at the moment (compatibility issue with the WKWebView renderer).
Unfortunately, infinitybit example uses the legacy init.

Sorry for the inconvenience.

Sign in to add a comment