Skip to content

A small example of syncing video controls across multiple browsers with WebRTC

License

Notifications You must be signed in to change notification settings

WillsonSmith/WebRTC-VideoSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#WebRTC-VideoSync

This project is a simple example of syncing video across multiple browsers using the client side peer-to-peer connection known as WebRTC. It uses PeerJS to make WebRTC easier and cross browser. In it's current state: both browsers/clients have to open up a video (the same video), and enter a number to sync them to their partner. It also only works with one-on-one interactions right now, in the future I plan on making it so you can connect multiple machines together.

##Getting this running To use this you pretty much just have to go into script.js and add your PeerJSkey to peer = new Peer({key: ''}),. This will allow you to connect to PeerJS as your signaling server to connect the two machines. From there you just open your browser (may requre a local server) and either share your pin, or have someone share their pin to get started.

At the moment the key is pulled in via a key.js file in the js directory. Create one with the following json structure: {"key": "yourkeyhere"}

About

A small example of syncing video controls across multiple browsers with WebRTC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published