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

Attempting to cast to Chromecasts is greyed out #239

Open
CountZeroOr opened this issue Sep 28, 2022 · 22 comments
Open

Attempting to cast to Chromecasts is greyed out #239

CountZeroOr opened this issue Sep 28, 2022 · 22 comments

Comments

@CountZeroOr
Copy link

OS version: Windows 11
Browser version: Firefox 105.0.1 (64-bit)
Extension version: 0.3.1
Bridge version: Not sure

Description
The extension can successfully pull up a list of compatible devices when attempting to cast video from Firefox to a Chromecast with Google TV. However, when I attempt to click on a device, nothing happens. Right-clicking on a device gives an option to cast to that device, but it is also greyed out.

Steps to reproduce

  1. Open a YouTube video in Firefox
  2. Click the icon for the fx_cast extension in the toolbar.
  3. Attempt to select a device to cast to.

Expected behaviour
After opening a video in Firefox, I expect to be able to select the device and start casting the video.

Logs
Provide any applicable logs here. Info on where to find them is located here.

@hensm
Copy link
Owner

hensm commented Sep 28, 2022

Can you confirm whether YouTube is whitelisted and detected as a sender app?

Should look like this:
youtube

@CountZeroOr
Copy link
Author

It is whitelisted, but it doesn't appear to be detecting as a sender app.

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

Looks like YouTube isn't loading the Chromecast library. Have you set a user agent override or do you have any other extensions that could be interfering with the user agent string?

Check the value of navigator.userAgent in the web console in a YouTube tab. It should be:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/104.0.0.0 Gecko/20100101 Firefox/103.0"

@CountZeroOr
Copy link
Author

I'm not seeing anything for that in the web console, when I filter by navigator.userAgent.

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

You need to evaluate it to get the value. Enter it in the command line at the bottom.
console

@CountZeroOr
Copy link
Author

Ah. Result is "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0", so it doesn't have the Chrome part.

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

I'd suggest testing with a fresh profile. Presumably there's something about your config that's conflicting here. Without the custom user agent, YouTube doesn't know to enable cast functionality.

@CountZeroOr
Copy link
Author

Same result on a fresh profile.

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

Same result on a fresh profile with fx_cast installed and YouTube whitelisted? I'm not really sure what would be causing this.

Is this just YouTube or does it affect other whitelisted sites? Maybe try checking for error logs in the extension toolbox console in case it's a weird bug in the request handler code:
https://extensionworkshop.com/documentation/develop/debugging/#developer-tools-toolbox

@CountZeroOr
Copy link
Author

CountZeroOr commented Sep 29, 2022 via email

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

Interesting, not seen that before. Well, that's definitely an extension bug. It'd be great to be able to reproduce this. Does this happen in a fresh profile?

Would be useful to see the current options values, if you could run this in the extension toolbox console:
JSON.stringify(await browser.storage.sync.get())

@CountZeroOr
Copy link
Author

Current options values are:
"{"options":{"bridgeApplicationName":"fx_cast_bridge","bridgeBackupEnabled":false,"bridgeBackupHost":"localhost","bridgeBackupPort":9556,"localMediaEnabled":true,"localMediaServerPort":9555,"mediaEnabled":true,"mediaOverlayEnabled":true,"mediaStopOnUnload":false,"mediaSyncElement":true,"mirroringAppId":"19A6F4AE","mirroringEnabled":false,"receiverSelectorCloseIfFocusLost":true,"receiverSelectorType":0,"receiverSelectorWaitForConnection":true,"userAgentWhitelist":["https://www.netflix.com/","https://www.youtube.com/","https://www.twitch.tv/","https://www.twitch.tv/","://www.twitch.tv/"],"userAgentWhitelistEnabled":true,"userAgentWhitelistRestrictedEnabled":true}}"

@CountZeroOr
Copy link
Author

I'm not getting the error messages in a clean profile, and I do appear to be able to cast.

@hensm
Copy link
Owner

hensm commented Sep 29, 2022

For some reason, the upgrade didn't update the options properly. Uninstall and reinstall the extension and it will reset them and fix it.

I'll do some testing to see why the upgrade failed.

@CountZeroOr
Copy link
Author

It is currently working with the reinstallation.

@jed84
Copy link

jed84 commented Oct 21, 2022

It is currently working with the reinstallation.

For some reason, it doesn't work for me.
Creating a new profile or reinstalling the Firefox extension does not resolve the problem.

@hensm
My user agent is as follows:
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/104.0.0.0 Gecko/20100101 Firefox/103.0"

Browser version: Firefox 106.0.1 (64-bit)
Extension version: 0.3.1
Bridge version: 0.3.0
OS: Win 11 22H2

@CountZeroOr
Copy link
Author

CountZeroOr commented Oct 21, 2022 via email

@jed84
Copy link

jed84 commented Oct 21, 2022

The extension does work with Spotify, but I can't make it work with (examples) YouTube, Daily Motion or All 4.

@jed84
Copy link

jed84 commented Oct 21, 2022

@hensm Can I please have your help on this one?

@hensm
Copy link
Owner

hensm commented Oct 21, 2022

@jed84 It sounds unrelated to this issue. Submit a new issue with some more info (logs if possible) and I'll take a look.

@MalcolmMielle
Copy link

Similar to @jed84 I get it to work with youtube but not deezer

@hensm
Copy link
Owner

hensm commented Jul 28, 2023

Similar to @jed84 I get it to work with youtube but not deezer

Seems to rely on a stubbed cast API method.
#279

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

No branches or pull requests

4 participants