GithubHelp home page GithubHelp logo

xanzion / fx_cast Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hensm/fx_cast

0.0 2.0 0.0 1.31 MB

Implementation of the Chrome Sender API (Chromecast) within Firefox

License: MIT License

JavaScript 97.48% Batchfile 0.02% Shell 0.08% CSS 1.74% HTML 0.69%

fx_cast's Introduction

fx_cast

Very WIP! Not ready for release. Expect many bugs. Please don't sign builds on AMO with current ID.

Credit:

Supported platforms

  • Linux
  • macOS
  • Windows (TODO)

Only tested on Linux and macOS. mDNS library issue to be fixed. mdns only works on Windows, mdns-js only works on Linux.

Building

Requirements

  • NodeJS
  • node binary in path
  • Bonjour SDK (Windows)

Instructions

git clone https://github.com/hensm/caster.git
npm install
npm run build
npm run install-manifest

Testing

Testing requires geckodriver (or chromedriver for Chrome parity testing). See selenium-webdriver installation instructions (ignore npm install).

Chrome doesn't load the media router in a temporary selenium profile, so there's a bundled profile (test/ChromeProfile.zip). Extract the folder within as test/ChromeProfile/.

npm run build
npm test
SELENIUM_BROWSER=chrome npm test

Usage

Extension can be loaded from about:debugging as a temporary extension.

Most sites won't load the cast API unless the browser presents itself as Chrome. The extension includes a method of spoofing the user agent string, sites can be whitelisted via the options page. Whitelist entries are specified as match patterns. To whitelist all sites, add <all_urls> to the whitelist, though this could cause breakage on random sites.

HTML5 media elements have a "Cast..." context menu item that triggers a sender application. Only works on remote (non-local) media that isn't DRM-encumbered.

Cast-enabled websites will load the sender API shim and display a cast button as in Chrome, provided there are no bugs/incompatibilities with the shim.

Video Demos

Netflix / HTML5:

fx_cast Netflix fx_cast HTML5

fx_cast's People

Contributors

benjamin-dobell avatar hensm avatar

Watchers

 avatar  avatar

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.