• Stars
    star
    772
  • Rank 58,858 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Synchronizing video play between two peers.

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 to install.

Firefox

Visit Coplay on Firefox Add-ons 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

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.

More Repositories

1

vue-awesome

Awesome SVG icon component for Vue.js, built-in with Font Awesome icons.
JavaScript
2,422
star
2

github-hovercard

Neat hovercards for GitHub.
JavaScript
1,823
star
3

vue-clamp

Clamping multiline text with ease.
Vue
697
star
4

resize-detector

Element resize detection.
JavaScript
156
star
5

vue-octicon

Octicon component for Vue.js, using inline SVG.
JavaScript
125
star
6

kolor

Color manipulation in sexy syntax.
JavaScript
94
star
7

slideshows

My slideshows about techical stuff.
HTML
79
star
8

lucky

A dead simple raffle app.
JavaScript
65
star
9

make-github-greater

Let's make GitHub greater.
JavaScript
57
star
10

makedown

Enable Markdown editing on Zhihu. / 在知乎上使用 Markdown 进行创作。
JavaScript
48
star
11

highlightable-input

A light-weight highlightable input.
TypeScript
38
star
12

fi

A snippet for inspecting font-family usage in a webpage.
JavaScript
34
star
13

color-converters

Tiny modular color converters.
TypeScript
23
star
14

clone-element

Clone HTML elements with styles.
TypeScript
21
star
15

postcss-discard-overridden

PostCSS plugin to discard overridden keyframes or counter-style.
JavaScript
16
star
16

postcss-sort-style-rules

PostCSS plugin to sort style rules according to selector specificity.
JavaScript
12
star
17

vue-directive-normalizer

Normalizing directive binding into an option bag.
JavaScript
11
star
18

vue-coupled

Create coupled parent-child component pairs with composition API.
TypeScript
10
star
19

vue-awesome-material-icons

Material icons for Vue-Awesome.
JavaScript
9
star
20

vue-void

A void Vue component to override a (scoped) slot with nothing.
JavaScript
8
star
21

triangle.less

Handy Less mixin for creating CSS triangles.
CSS
7
star
22

w3c-userstyle

Highly opinionated user stylesheet for W3C specifications.
6
star
23

zhihu-insight

在知乎问题页添加已有回答的索引,方便浏览热门问题。
JavaScript
5
star
24

spotlight

A simplest finder.
JavaScript
5
star
25

veui-theme-spectre

Spectre.css based theme for VEUI.
Vue
4
star
26

esm-pkg

Find all dependent packages with an ESM output.
JavaScript
4
star
27

short-circuit-loader

Short circuit specified side-effect-only modules for webpack.
JavaScript
4
star
28

justineo.github.io

HTML
3
star
29

v-html-svg

Manual test case for v-html support for SVG in Vue.js.
HTML
3
star
30

singles

3
star
31

npmmirror-sync

Triggers sync on npmmirror.com.
TypeScript
2
star
32

nuxt-generate-bug

A reproduction for nuxt/nuxt.js#4562
Vue
1
star
33

simpledark

Automatically exported from code.google.com/p/simpledark
PHP
1
star
34

babel-plugin-import-peer

Import peer dependencies for component modules with ease.
JavaScript
1
star
35

vscode-dls

Baidu DSL tooling for VS Code.
TypeScript
1
star
36

draw

Lucky draw for SSG.
JavaScript
1
star
37

vue-esnext-in-template

A minimal repro for vuejs/vue/#6307.
JavaScript
1
star
38

drag

Super compatible draggable implementation.
JavaScript
1
star