Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast API not implemented [$255 PAID] [$255 awarded] #79

Closed
lbdroid opened this issue Jan 21, 2016 · 83 comments · Fixed by #555
Closed

Cast API not implemented [$255 PAID] [$255 awarded] #79

lbdroid opened this issue Jan 21, 2016 · 83 comments · Fixed by #555

Comments

@lbdroid
Copy link

lbdroid commented Jan 21, 2016

This is probably one of the most critical components needed in order for most people to be able to switch away from binary gmscore, mainly because most media nowadays (i.e. youtube, netflix, etc.) depends on it in order to be at all useful. Everything else can be worked around, replaced, or proxied.

There is no real indicator of status of this, the closest is from 3rd party website, and indicates "Cast API: Some initial work done, nothing usable, applications may crash."

  • what is the current status?
  • what needs to be done?

Bountysource

@funkypc
Copy link

funkypc commented Jan 29, 2016

youtube cast seems to work fine as it still uses castv1. Almost all other apps have migrated to castv2.
Castv2 support could be added using this API https://github.com/vitalidze/chromecast-java-api-v2

@lbdroid
Copy link
Author

lbdroid commented Jan 29, 2016

Nice find @funkypc !

@mar-v-in mar-v-in added this to the v0.03 milestone Feb 28, 2016
@tobiasnix
Copy link

I am a long time cyanogenmod user without gapps. The cast api is one of the most missing feature (to use chromecast). Just added a 15$ bounty to support this issue: https://www.bountysource.com/issues/30090937-cast-api-not-implemented

@mar-v-in mar-v-in modified the milestones: v0.4.0, v0.3.0 Apr 14, 2016
@hurradiegams
Copy link

I've just added $ 25,-- to the bounty, I'd be really happy to see this issue resolved.

@mar-v-in mar-v-in modified the milestones: v0.4.0, later Jul 1, 2016
@mar-v-in mar-v-in changed the title Cast API not implemented Cast API not implemented [$40] Aug 25, 2016
@ale5000-git
Copy link
Member

It seems that there are big progresses in the last preview build :)

@wiedo
Copy link

wiedo commented Nov 16, 2016

Does it work yet? I'm currently investigating if I'm going to switch to no gapps (or at least no google account) but Chromecast will be missed because I use it daily. If it works, or needs to be tested, I'll give it a try.

@mar-v-in
Copy link
Member

No, Cast API is not yet implemented.

@ale5000-git
Copy link
Member

But in the log there is "Fix newest Cast Framework for some apps".

Doesn't it include something?

@mar-v-in
Copy link
Member

This is just a fix to ensure that apps using the newest cast framework don't crash on startup and are usable, it does not provide cast functionality.

@JonnyTech
Copy link

Is there a workaround to get Casting working either with an app or a hack until it is officially implemented into microg?

@mar-v-in
Copy link
Member

BubbleUPnP has Chromecast support and allows you to stream arbitrary content to the Chromecast, but only if the content is provided as drm-free media file/stream. Some older versions of YouTube can cast without play services. There are also apps that stream the screen content which might be usable with a chromecast as well.
AFAIK there is no fully features free software solution other than using chromium on a desktop so far to control a chromecast.

@JonnyTech
Copy link

Thanks, I'll investigate.

@mar-v-in mar-v-in changed the title Cast API not implemented [$40] Cast API not implemented [$55] Nov 21, 2016
@cstich
Copy link

cstich commented Jan 12, 2017

I have also found this "unofficial" documentation of the protocol v2: https://github.com/jloutsenhizer/CR-Cast/wiki/Chromecast-Implementation-Documentation-WIP

@christianfl
Copy link

Is there anything one can do to help with this problem? I own a chromecast 1st gen and want to use a complete Google-free smartphone in the future.

@ale5000-git
Copy link
Member

@christianfl: Anyone (well, a programmer) could implement it and submit a pull request.

@Roxxor91
Copy link

Roxxor91 commented Mar 5, 2017

There is also a plugin for PulseAudio(Linux audio server) which supports streaming to Chromecast.
Here is the code concerning chromecast:
https://github.com/masmu/pulseaudio-dlna/tree/master/pulseaudio_dlna/plugins/chromecast

@ShapeShifter499
Copy link

I'd like to see this so I've added $5 to the bounty.

@mar-v-in mar-v-in changed the title Cast API not implemented [$55] Cast API not implemented [$60] Mar 16, 2017
@mar-v-in mar-v-in changed the title Cast API not implemented [$60] Cast API not implemented [$75] Mar 16, 2017
@lbdroid
Copy link
Author

lbdroid commented Apr 3, 2017

Is anybody even looking at this?
This is THE critical feature.

@ale5000-git ale5000-git changed the title Cast API not implemented [$95] Cast API not implemented [$255 PAID] Jun 13, 2019
@ale5000-git ale5000-git modified the milestones: later, 0.2.7 Jun 13, 2019
@mar-v-in mar-v-in changed the title Cast API not implemented [$255 PAID] Cast API not implemented [$255 PAID] [$255 awarded] Jun 14, 2019
@Dougo007
Copy link

Doesn't work for me, I was curious when I saw this so I tried to use the Cast function from quick settings. It didn't do anything. Setup notes that I know of: Moto X4 w/ Havoc OS (Pie) and installed core only as user (not system). I needed it to keep GCam from crashing, didn't bother trying it for anything else until now.

@ale5000-git
Copy link
Member

Please update to this build and retry.
This build isn't on F-Droid.

@Dougo007
Copy link

Dougo007 commented Aug 18, 2019

I installed your listed version, no change.

I tried as priv-app and with the other plugins but there was no change. I also saw the cast icon didn't show up in Youtube Vanced (I don't use it but I checked to see if other apps would show the icon).

I also posted a question to the Moto X4 Havoc group to make sure it's working with normal GPlay Services: https://forum.xda-developers.com/showpost.php?p=80092491&postcount=701

@christianfl
Copy link

Should this work by now? Using microG 2.0.10.1940 which is built-in in LineageOS for microG it does not work neither with casting directly from quick settings nor with Netflix and Amazon. Netflix shows the icon (and after tipping on it the name of the chromecast) but does not connect.

Any information on this? Can I help somehow?

@infinity0
Copy link

Just to clarify, you guys (that just commented about it not working) are testing the GSF Cast API and not just the regular chromecast connection? Try installing VLC and casting from that - it talks to the chromecast directly without going through the GSF Cast API. (Play a video, then after 2-3 seconds a cast icon will show up in the corner.) If this doesn't work, then your problem is something other networking issue unrelated to this issue.

If VLC cast works, but (e.g.) Spotify cast doesn't work - it uses the GSF Cast API - then your issue is the same as this one.

@AshotN
Copy link

AshotN commented Jul 19, 2020

Casting works very inconsistently and very poorly for me using Netflix. VLC works fine. This issue should be reopened.

@infinity0
Copy link

I am using microG Services Core 0.2.10.19420 with lineageOS 16 from just a couple months ago. VLC works & Spotify doesn't work. I have a relatively complex firewall, but the same settings work for both Spotify and VLC on my other phone using the real GSF.

Would be nice if devs could provide some diagnostic instructions.

@infinity0
Copy link

infinity0 commented Jul 19, 2020

One workaround that works for me is, if I log into Spotify on both phones, use the real-Google phone's Spotify to connect to the chromecast, then I can use my microG phone's Spotify to control the chromecast. Ofc, this depends on having a 2nd real-Google phone & an app that supports this level of control.

This suggests that the chromecast is talking to the service directly, rather than via the controller, which makes some sense. In other words, any quality issues you might be having, is probably not microG's fault. (My Spotify's streaming quality in the chromecast is fine even though microG can't connect to it.)

@bitterpanda63
Copy link

Disney+ isn't working, somebody know why?

@burgerlander
Copy link

burgerlander commented Jan 8, 2021

Anybody else facing YouTube casting issues? The cast button isn't displayed. I'm on android 10 using the latest stable microg build. It's the only feature that's keeping me from using this.

@AshotN
Copy link

AshotN commented Jan 11, 2021

I am using microG Services Core 0.2.10.19420 with lineageOS 16 from just a couple months ago. VLC works & Spotify doesn't work. I have a relatively complex firewall, but the same settings work for both Spotify and VLC on my other phone using the real GSF.

Would be nice if devs could provide some diagnostic instructions.

If I recall correctly, VLC implemented their own casting fix irrelevant of MicroG. The only reason to test with VLC is to check for a network connectivity issue.

But this issue is definitely not resolved. I'm not sure why it's still closed.

@juxuanu
Copy link

juxuanu commented Jan 23, 2021

Wouldn't it be possible to use what VLC uses as a layer between Google's casting protocol and the Chromecast? Just giving an idea.

Anyway, this issue seems to not be actually solved.

@brokoler
Copy link

Sadly not solved and my biggest reason not to switch to MicroG. Would be great to see an update here.

@AshotN
Copy link

AshotN commented Feb 16, 2021

I am cancelling my subscription to this project, this issue has been unresolved for a long time and marked as fixed. I don't even have an Android anymore, and I was supporting this project out of principle.

@i0r14
Copy link

i0r14 commented Mar 6, 2021

the same happens to me too.
Fresh custom rom with microg can't cast Netflix, Prime ecc...
The same rom with opengapps pico works perfectly.

This project is a blessing, but this only thing is keeping me from installing it on every device i own.

@qx-775
Copy link

qx-775 commented Apr 7, 2021

Looking at previous comments, could a dev kindly reopen this issue? This issue does not seem fixed or is broken. Thank you.

@idanoo
Copy link

idanoo commented Apr 10, 2021

Casting to an existing session appears to work (if you cast the app from a phone with GSF first) but cannot cast through microG by itself

@mddvul22
Copy link

I am able to Chromecast with Omnirom+Microg. I do not have GSF on my phone. Some apps work better than others. But youtube casting works fine, for example.

@gjimenezf
Copy link

Using YouTube Vanced on Samsung S8 android 9, chromecast device is listed but when I try to cast it doesn't connect and got a message saying Google play services needs to be updated but I am using latest stable version 21.15.15.
On normal YouTube Chromecast works well
Microg version 0.2.18.210500
YouTube Vanced 16.16.38

@Braintelligence
Copy link

Using YouTube Vanced on Samsung S8 android 9, chromecast device is listed but when I try to cast it doesn't connect and got a message saying Google play services needs to be updated but I am using latest stable version 21.15.15.
On normal YouTube Chromecast works well
Microg version 0.2.18.210500
YouTube Vanced 16.16.38

I have the exact same problem on my OnePlus 9 Pro.

@PeterKW
Copy link

PeterKW commented Aug 24, 2021

Using YouTube Vanced on Samsung S8 android 9, chromecast device is listed but when I try to cast it doesn't connect and got a message saying Google play services needs to be updated but I am using latest stable version 21.15.15.
On normal YouTube Chromecast works well
Microg version 0.2.18.210500
YouTube Vanced 16.16.38

I have the exact same problem on my OnePlus 9 Pro.

https://github.com/YTVanced/Vanced/issues/1213

I believe I am having the same issue. Is there a list of known bugs somewhere to check on updates of when this should be fixed?

@ale5000-git
Copy link
Member

This issue was about implementing Cast and Cast was implemented, now it is broken but it is a separate issue.
I suggest everyone to go here: #580

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.