This is an experimental project to share local videos with your friends via WebRTC, based on WebTorrent.
-
Videos will be transferred between peers via WebRTC.
-
Operations, such as plays / pauses / forwards / backwards, can be synchronized between clients simultaneously.
-
You can comment anytime while watching.
-
AvTogether uses LeanCloud as the backend to save room information. To setup your own server, you may want to modify
src/config.js
:export default { leancloud: { appId: '', // `appId` from LeanCloud appKey: '', // `appKey` from LeanCloud region: '' // 'cn' or 'us' } }
-
To run a dev server for debugging purpose:
$ npm run dev
To run a production server:
$ npm run build $ http-server -p 8080
A tracker is a special type of server which is used to assist in the communication between peers. By default AvTogether uses the following trackers:
- udp://tracker.openbittorrent.com:80
- udp://tracker.internetwarriors.net:1337
- udp://tracker.leechers-paradise.org:6969
- udp://tracker.coppersurfer.tk:6969
- udp://exodus.desync.com:6969
- wss://tracker.webtorrent.io
- wss://tracker.btorrent.xyz
- wss://tracker.openwebtorrent.com
- wss://tracker.fastcast.nz
To add a custom tracker server you may modify the src/config.js
:
export default {
torrent: {
trackers: [
'ws://your.tracker.address'
]
}
}
You are able to run a tracker on your own server. Please refer to avtogether-tracker.
MIT