Giter VIP home page Giter VIP logo

Comments (8)

hensm avatar hensm commented on June 11, 2024

You didn't mention whether this is compatible. I don't think I can test this one because of geoblocking, but I'll try with a VPN later.

from fx_cast-compat.

nettnikl avatar nettnikl commented on June 11, 2024

You didn't mention whether this is compatible.

I can confirm, that it is not possible.
May (how) people can help with testing?

from fx_cast-compat.

hensm avatar hensm commented on June 11, 2024

@nettnikl

May (how) people can help with testing?

If there are specific issues, describe them in detail (e.g. the cast button appears, but doesn't respond to clicks; when attempting to cast, the player hangs and never finishes connecting, etc...).

To fix these issues, I would usually debug the player and Chromecast sender application with the browser dev tools and step through the code to figure out where any incompatibilities are, but obviously I can't do that here.

from fx_cast-compat.

nettnikl avatar nettnikl commented on June 11, 2024

obviously I can't do that here

Could you explain why? Maybe i can do so, but i'm not sure where to start.

from fx_cast-compat.

hensm avatar hensm commented on June 11, 2024

Geoblocking, as I mentioned in the initial response. It's not available in the UK.

If you want to try and debug it yourself, it's a little involved, but you'd have to first get a development version of the extension running and set some breakpoints in the page scripts for the South Park site where they're calling the Chromecast sender SDK APIs.

Depending on what's broken, you'd look in different places.

If there isn't a cast button showing up at all, you'd look at where the sender SDK is loaded. They should be initializing cast stuff in the window.__onGCastApiAvailable callback, so you'd be able to follow it from there. Depending on whether they're using the newer Cast Application Framework (CAF), or the older chrome.cast base API, the cast button would either be a custom element (<google-cast-launcher>) handled by CAF or an element whose visibility is handled by the app in response to receiver listeners passed in the chrome.cast.ApiConfig object when initializing the API.

If there's some unexplainable behaviour like UI not updating or responding to session creation or updates, you'd need to find where that's supposed to be happening (CAF and the base API have different methods for registering listeners) and compare the behaviour to what happens in Chrome.

Could be that the extension is returning data that isn't what the app expects and causing script errors, or browser-specific code is causing errors in Firefox because of user agent sniffing. Might be unimplemented parts of the API or the way the bridge code is sending messages or handling responses from the Chromecast. Anything that behaves differently to Chrome could be a source of bugs.

Fair warning though, the page script code is usually minified/obfuscated and pretty annoying go through.

from fx_cast-compat.

nettnikl avatar nettnikl commented on June 11, 2024

Oh wow, thanks for the detailed answer. Will see if i can figure it out, i'm very interested in getting this to work.

from fx_cast-compat.

nettnikl avatar nettnikl commented on June 11, 2024

Alright, looking into this, i can see how pages are made compatible to chromecast. And it seems, i have misunderstood, how this project achieves it's features - i assumed, it would work with generic pages.

I think i misunderstood the following:

A Firefox extension that implements the Chromecast API and exposes it to web apps to enable cast support

As the requested page seems not to contains any chrome cast related lib or scripts, i now doubt that this project is supporting this case - am i right?

from fx_cast-compat.

hensm avatar hensm commented on June 11, 2024

Right, yes.

It provides an implementation of the sender SDK if a site requests it. The site itself has to have a sender app that utilises it.

There's also support for basic HTML5 media (simply forwarding the URL), and experimental screen mirroring that isn't suitable for video streaming.

Chrome has some optimisations to more efficiently stream generic video content over a screen mirroring session, but that's not something this project supports or likely will ever be able to support.

from fx_cast-compat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.