Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Justineo/coplay
Synchronizing video play between two peers.
https://github.com/Justineo/coplay
browser-extension peerjs video webrtc
Last synced: about 1 month ago
JSON representation
Synchronizing video play between two peers.
- Host: GitHub
- URL: https://github.com/Justineo/coplay
- Owner: Justineo
- License: mit
- Created: 2014-12-14T12:23:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T07:40:12.000Z (almost 2 years ago)
- Last Synced: 2024-06-15T18:34:01.848Z (3 months ago)
- Topics: browser-extension, peerjs, video, webrtc
- Language: JavaScript
- Homepage:
- Size: 1.21 MB
- Stars: 773
- Watchers: 18
- Forks: 121
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-webrtc - Coplay - Synchronizing video play between two peers. (Projects)
README
# Coplay
Synchronizing video play between two peers.
## Intro
When two browsers are playing the same web video, Coplay can connect them with WebRTC (using PeerJS) and enable users to control two video players synchronously.
Coplay now works on Youku, Sohu TV, Tencent Video, Tudou, iQiyi, YouTube, AcFun, bilibili, LETV and Vimeo.
Buttons on control bar stands for "connect", "play", "pause", "sync", "restart", "fullscreen" and "video chat".
## Installation
### Chrome
Visit [Coplay on Chrome Web Store](https://chrome.google.com/webstore/detail/coplay/heolgpojkkeacaokbpolhalhlaidpkkc/) to install.
### Firefox
Visit [Coplay on Firefox Add-ons](https://addons.mozilla.org/firefox/addon/coplay/) to install.
## Usage
Both browsers visit a same video page, activate Coplay and one of the users enter the other one's peer ID and connect.
After establishing the connection, both users can perform pause/resume/seek/restart/sync actions.
For HTTPS sites, users can use video calls to video chat with each other while watching videos. *You might need to put your headphones on while video chatting because Coplay has no AEC(acoustic echo cancellation) support. (Help needed)*
![Coplay](coplay.png)
## Options
* Enable default HTTPS server - To work with HTTPS sites you have to use PeerJS service over HTTPS. (eg. If you want to use it on YouTube but don't want to allow requests to insecure domains, you can use the default HTTPS service or you can set up a custom PeerJS server with HTTPS support using the next options.)
* Custom server - You can specify custom PeerJS server.
* Key - Provide additional auth key to your custom server (if necessary).
* Auto-activate - If Coplay detected supported video players on applicable sites, it will be activated automatically.## FAQ
* Why Peer ID doesn't show up on Youtube?
Youtube uses HTTPS but PeerJS (the WebRTC service which Coplay rely on) will make some HTTP requests, which are blocked by browsers' security policies. You can 1. enable default HTTPS server in the options or 2. set up your custom PeerJS server with HTTPS support.