agottschling 2 Posted August 31, 2020 Share Posted August 31, 2020 Basically the title, but there's a ChromeCast support extension for Firefox, and I'm wondering if you can add support for it (Basically if the extension is installed, load the CC api instead of only loading it if Chrome is detected) Cheers! Extension Docs and Info: https://github.com/hensm/fx_cast Link to comment Share on other sites More sharing options...
Luke 37063 Posted August 31, 2020 Share Posted August 31, 2020 Hi there, have you tried this out? Link to comment Share on other sites More sharing options...
agottschling 2 Posted August 31, 2020 Author Share Posted August 31, 2020 (edited) I have tried it, and sorta works. However I need to fake the user-agent so that Emby calls for the chromecast api to be loaded. Once that happens, it does work for the most part. The dev found a few bugs in his code and I'm waiting for an update to make sure that those issues were resolved. But it'd be nice if I didn't have to fake my user-agent in order to get it to work. Edited August 31, 2020 by agottschling Link to comment Share on other sites More sharing options...
Luke 37063 Posted August 31, 2020 Share Posted August 31, 2020 Is there a way to detect it, such as a global object that gets injected? Link to comment Share on other sites More sharing options...
agottschling 2 Posted August 31, 2020 Author Share Posted August 31, 2020 As far as I can tell, it adds a 'cast' JavaScript object that works exactly (or almost exactly) like the one baked into Chrome. But I'm not a programmer by trade (I've dabbled a bit, but I'm not very good). The docs on the GitHub seem pretty good from my casual glance at them. Link to comment Share on other sites More sharing options...
Luke 37063 Posted August 31, 2020 Share Posted August 31, 2020 Ok i haven't had a chance to test this myself yet but I'm putting in a change that I think should resolve it for the next release. Thanks. Link to comment Share on other sites More sharing options...
agottschling 2 Posted September 1, 2020 Author Share Posted September 1, 2020 I'll give it a try when the next server update happens and let you know if it works. I'm not running the beta though, will I see something in the change-log to know when the supposed fix is on my server? Link to comment Share on other sites More sharing options...
Luke 37063 Posted September 1, 2020 Share Posted September 1, 2020 There will be an announcement on the blog about it. Also the change will be up on the online web app in the next day or so: http://app.emby.media So that will allow you to test it without updating the server. Link to comment Share on other sites More sharing options...
agottschling 2 Posted September 1, 2020 Author Share Posted September 1, 2020 Ok, I'll check it out and report back Link to comment Share on other sites More sharing options...
agottschling 2 Posted September 4, 2020 Author Share Posted September 4, 2020 Hey @Luke, I checked out the online web app today and it still doesn't call for the cast api unless the user-agent had Chrome in it. Has that update hit the app yet? Cheers! Link to comment Share on other sites More sharing options...
Luke 37063 Posted September 4, 2020 Share Posted September 4, 2020 It has yes. It's checking for the chrome global variable. If that's not there we'll need some way of detecting it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now