在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:hensm/fx_cast开源软件地址:https://github.com/hensm/fx_cast开源编程语言:TypeScript 75.6%开源软件介绍:fx_castA Firefox extension that implements the Chromecast API and exposes it to web apps to enable cast support. Communication with receiver devices is handled by a companion application (bridge). InstallingInstall the Firefox extension (from within Firefox) and bridge application via the installer packages. These are two separate downloads that can be found on the website or in the GitHub releases section. The bridge application is currently supported on Windows, macOS and Linux. Important: On Linux platforms such as Arch, it may be necessary to configure local hostname resolution1. Installing via package managersNote: These packages are maintained by third parties and support likely will not be provided for any issues specific to these packages.
Daemon ConfigurationDaemon configuration (systemd)
$ sudo useradd --system fx_cast
$ sudo systemctl enable --now fx_cast UsageClicking on the toolbar button or Site WhitelistThe extension provides a whitelist for ensuring only trusted sites are allowed to load the cast API and communicate with receiver devices. Sites may be added to the whitelist, either by clicking one of the whitelist options in the toolbar button context menu whilst visiting the site, or by manually entering a valid match pattern on the options page. Whitelisted sites should then display a cast button as in Chrome, provided they're compatible with the extension/Firefox. BuildingRequirements
Cross-compiling native dependencies may be possible, but isn't tested or supported. Build script options are provided for building/packaging on other platforms, but assume they won't work. Packaging on Linux for other Linux package formats should work fine. Installing dependenciesWindows:Debian / Ubuntu:$ sudo apt install libavahi-compat-libdnssd-dev dpkg rpm Runtime packages: Fedora:$ sudo dnf install avahi-compat-libdns_sd-devel dpkg rpm-build Runtime packages: Arch Linux:$ sudo pacman -S avahi dpkg rpm-tools Instructions$ git clone https://github.com/hensm/fx_cast.git
$ cd fx_cast
$ npm install
$ npm run build
# Install manifest for dist/ build. Installs to
# user-specific location and overrides a system-wide
# install. Call `remove-manifest` to restore previous state.
$ npm run install-manifest
$ npm run remove-manifest This will build the ext and app, outputting to
Watching ext changes: $ npm run watch:ext Launch Firefox with built extension (run in separate terminal): $ npm run start:ext 32-bit on WindowsBuilding a 32-bit version is only supported for Windows. If you're building from a 64-bit system, you'll also need to rebuild any native dependencies as 32-bit. $ npm clean-install --prefix ./app --arch=ia32 # If on a 64-bit system
# If building without packaging
$ npm run build:app -- -- --arch=x86 --usePkg
# If packaging
$ npm run package:app -- -- --arch=x86 Build scriptsExtension build script (
Bridge build script (
PackagingBuild and package extension and bridge application for current platform: $ npm run package
Packaging examples: $ npm run package:ext # Packaging extension
$ npm run package:app # Packaging bridge application
# Linux platforms
$ npm run package:app -- -- --packageType=deb
$ npm run package:app -- -- --packageType=rpm Bridge package script arguments (includes the build script arguments):
TestingTesting requires geckodriver (or chromedriver for Chrome parity testing). See selenium-webdriver installation instructions (ignore The test script expects a compatible installed bridge version and a packaged extension archive at Test results will be displayed in the terminal and within the opened browser tab. Chrome may take some time to initialize the media router component before the cast API is available for testing. $ npm run build:app
$ npm run install-manifest
$ npm run package:ext
$ npm test
# Or if testing in Chrome
$ SELENIUM_BROWSER=chrome npm test Video DemosThese are somewhat outdated now, but show the basic function of the extension: Credit
DonationsPayPalFootnotes
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论