Skip to content

cvhariharan/videosync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

videosync

A peer-to-peer video syncing tool. Uses webrtc for communication. No video is transmitted, only the information necessary to sync the video is sent over a text based protocol. The same video file should be present with both the peers if a local video has to be synced.

Videosync connects to mpv using IPC to play the video. A TURN server may be required if the ICE connection fails.

Dependencies

  • mpv
  • yt-dlp (optional: can be used to play online videos with mpv)

Usage

Currently videosync only supports 1-1 connections.
Each connection has a host

#host
videosync -host -video=https://www.youtube.com/watch?v=dQw4w9WgXcQ

This will generate a webrtc offer that should be sent to the connecting peer. The peer will simply run videosync and paste the offer when prompted. This will in turn generate an answer which should be sent back to the host.

#peer
videosync

Once the host pastes the answer, the connection will be established and the video will be launched.

About

P2P video syncing over webrtc

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published