CC-for-HLS is a p2p assisted adaptive bitrate HTTP video streaming(HLS) transmit system.
It based on node.js and socket.io. You can also use this repo as a bittorrent-like experimental P2P platform.
The video module is based on FFmpeg, so it can be easily adapted to stream files in other formats.
This is a Node project, currently does not support NPM installation Before installing, download and install Node.js 16 or above.
Useclone https://github.com/gitgjr/P2P-video-distribution-system.git
clone the project.
Then install dependencies:npm i
Run the sender and receiver:
node sender.js
and node receiver.js
The files kept by the node are placed in the resource folder, and the Data folder is the download path.
Change test.js to customize your own test tasks.