Watch streaming media with friends.
- Runs on Windows and macOS.
- Synchronized playback of streaming media across various websites.
- Public, private, and offline sessions.
- Support for P2P (WebRTC) and Direct IP (WebSocket) connections.
- P2P uses swarm-peer-server with 64-character hex public keys, called "friend codes".
- Both P2P and Direct IP use client-server architecture.
- Real-time chat with peers.
- Queue of media requested by peers in session.
- Discord Rich Presense, avatars, and user session invites.
- Timestamp cue points parsed from media description.
- Auto-fullscreen of embedded media players on websites.
- Per-user playback permissions, managed by the host.
- Basic host administrative functionality (kicking peers).
- Partial support for Chrome Extensions.
- Localization—see info on contributing.
Download the latest version of Metastream from the official website.
Download specific installer files from the GitHub releases page.
Try the (unstable) development version by cloning the Git repository. See the "How to Contribute" instructions.
Why Electron and not a web app?
tl;dr: Electron is more flexible.
There were two main designs goals in mind while building Metastream.
- Support most media streaming websites.
- Make networking resiliant in case any backend services go down.
To synchronize media on websites, there are two options: use a public API provided by the service OR inject scripts to interact with the media player.
To inject scripts into a website, a browser extension is required. If Metastream were a web app, it would require browser extensions for each vendor (Chrome, Firefox, Edge, etc.). On top of this, there's a history of extensions getting removed from vendor stores without an available recourse.
Auto-fullscreen is a feature in Metastream in which video players on a webpage are enlarged to take up the full application frame. This required some trickery with injecting mouse clicks to trigger user gestures, something not possible with a browser extension.
Ultimately Electron gives more flexibility to interact with webpages to help make all web streaming media better supported.
Making it resiliant
Most web apps typically provide only one way to connect to peers—using their proprietary backend service. If it ever goes down, you can no longer use the web app.
By using Electron, I provide two ways to connect to peers: WebRTC, prone to downtime, and Websockets, always available for Direct IP connections.
How to Contribute
Get the code
$ git clone https://github.com/samuelmaddock/metastream.git $ cd metastream $ yarn
Run the app
$ yarn dev # Open multiple instances for local network testing $ NUM_WINDOWS=2 yarn dev
Package the app
Builds app binaries for the host architecture.
$ yarn package
The version of Electron used in the release app depends on a fork which is not yet automatically used in the current build process. It can be manually downloaded from samuelmaddock/muon. Once downloaded, place the ZIP into