hensm / fx_cast

Chromecast Web Sender SDK implementation for Firefox
https://hensm.github.io/fx_cast/
MIT License
1.85k stars 62 forks source link

No Devices to cast to - Bridge has TCP connection #81

Open xWTyrone opened 4 years ago

xWTyrone commented 4 years ago

Version: 0.0.4 Bridge Version: 0.0.4 Firefox Version: 69.0 64-bit OS: Windows 10 Pro x64 (Build 18362.295)

Target: Chromecast Audio FW: 1.42.168007 (from Google Home app)

Happens when casting from extension icon, right-click menu and website app (tried Spotify and Soundcloud).

I have no clue where logs are stored for either the extension or the bridge.

Whenevery I try to cast, there is no device available. Google Home app reports otherwise. Using netstat, I can see the bridge successfully connected to the CCA - port 8009.

hensm commented 4 years ago

Does it work on v0.0.3?

What do you see when you try to cast? Does the cast button appear? If you're clicking a menu item, does it just do nothing?

There are some debug builds in the latest comment in #79, since it sounds like it could be the same problem.

xWTyrone commented 4 years ago

Does it work on v0.0.3?

v0.0.3 works. The option to cast shows up. Tested with Twitch.

What do you see when you try to cast?

The cast window. With the dropdown to select what to cast, but no cast option.

Does the cast button appear?

Which button? The one in the cast window? No. The context menu (right-click)? Yes. Extension Toolbar? Yes.

If you're clicking a menu item, does it just do nothing?

Which menu?

There are some debug builds in the latest comment in #79

Will check later.

I'll collect some images and link them here for clarity's sake. Then I'll check debug builds.

hensm commented 4 years ago

v0.0.3 works

Okay, definitely a regression then. Pretty sure I know which commit caused it. It's a squashed PR that got way too big. Will work on this when I have the time.

Which menu?`

Extension "Cast..." menu item.

shmerl commented 4 years ago

I think have the same bug (tested latest release 0.0.5 with Firefox 74.0b7 on Debian testing). No devices to cast to show up, while VLC for example finds my BenQ GV1 projector.

hensm commented 4 years ago

@shmerl Could be. Logs would help: https://extensionworkshop.com/documentation/develop/debugging/

Edit: and logs from the browser console if there are any.

edoren commented 4 years ago

I'm having this same issue with a Chromecast 3 in v0.0.6, Firefox 73.0.1, this are the debug logs for the extension:

fx_cast (Info): init background.js:1:1185
fx_cast (Info): init (menus) background.js:1:1185
fx_cast (Info): init (request listener) background.js:1:1185
fx_cast (Info): init (whitelist) background.js:1:1185
fx_cast (Info): init (media overlay) background.js:1:1185
fx_cast (Info): init (browser action) background.js:1:1185
fx_cast_bridge disconnected: <empty string> background.js:1:11071
fx_cast (Error): Bridge connection failed and backup not enabled. background.js:1:1279
fx_cast_bridge disconnected: <empty string> background.js:1:11071
fx_cast (Error): Bridge connection failed and backup not enabled. background.js:1:1279
fx_cast (Info): Cancelled receiver selection background.js:1:1185
fx_cast_bridge disconnected: <empty string> background.js:1:11071
fx_cast (Error): Bridge connection failed and backup not enabled. background.js:1:1279
fx_cast_bridge disconnected: <empty string> background.js:1:11071

For some reason the bridge keeps disconnecting, was trying to check the message connection between the extension and the bridge but it's hard to debug it not knowing the message protocol used.

DanielRios549 commented 4 years ago

I don't know if this is the same bug, but for me, there is nothing to cast to as well, I use KDE Neon 5.18.5 and Firefox 76.0.1 (the one from Ubuntu 18.04 repository). I installed Chrome to make sure it is working, it shows my old smart TV and the Chromecast I named "Chromecast", but Firefox does not.

On Chrome: image

On Firefox with both extension and bridge installed: image

hensm commented 4 years ago

@DanielRios549 Can you try this build? https://github.com/hensm/fx_cast/issues/113#issuecomment-624287370

DanielRios549 commented 4 years ago

@hensm Still not working, it show nothing.

ugurbor commented 4 years ago

@hensm I am having the same issue with @DanielRios549. Latest Ubuntu 20.04. Can see the TV in Chromium but can't in fx_cast.

image

hensm commented 4 years ago

@ugurbor I don't think that's a Chromecast receiver, especially since Avahi isn't picking it up.

ugurbor commented 4 years ago

@hensm yeah it's not a Chromecast device but it's a Google Cast device. I thought fx_cast also supports that. Maybe I should search with a different protocol/port with avahi? Since Chrome can find it, it can be supported I guess?

hensm commented 4 years ago

@ugurbor I don’t think it’s Google Cast, maybe DIAL? Does it work with other apps than YouTube on Chrome?

ugurbor commented 4 years ago

@hensm it also works with the YouTube apps on mobile devices. Also Netflix and I believe Spotify works with apps.

Edit: Yes found out it's DIAL actually. Didn't know it at all. I will try to find if there are any DIAL clients for Firefox. Thanks. image

DanielRios549 commented 4 years ago

@ugurbor Hum, my Chromecast is not shown in avahi as well, I change from KDE Neon to PopOS and the problem persists, Chrome still can access it and even my old Samsung Smart TV. But now I know my problem is that, even Cast to TV Gnome extension can't find them, when Avahi find them, I think both Cast to TV and fx_cast will find as well, at least the Chromecast.

Ingineerix commented 4 years ago

Also "No receiver devices found" on Ubuntu 20.04 with 0.0.6 in Firefox 77.0.1

Both Chromecasts do show up on avahi: Found service 'Chromecast-a6624405a8b11dbe31114e96f4bd7f53' of type '_googlecast._tcp' in domain 'local' on 3.0. Found service 'Chromecast-21aa4201ffa9c979c7af0c07fb960b6c' of type '_googlecast._tcp' in domain 'local' on 3.0.

hensm commented 4 years ago

@Ingineerix See #121. Just testing now, and fixing some Linux issues, but should have a new release in the next week or so.

outlandnish commented 3 years ago

I have the same issues as @edoren on Windows 10 w/ Firefox. The bridge keeps disconnecting with no reason (empty string). I ran a local build of it and had the same result in daemon mode too.

As a quick edit: the bridge is found in both bridge and daemon mode when I test a local build.

hensm commented 3 years ago

@outlandnish Likely the bridge is sending invalid output to stdout and Firefox is closing it. I've seen that error before, but I don't remember the exact circumstances. Filed a new issue (#134).