pldubouilh / live-torrent

Simple proof-of-concept for a live streaming solution based on webtorrent
MIT License
165 stars 39 forks source link

Improve p2p/server ratio #11

Open Er-rchydy opened 6 years ago

Er-rchydy commented 6 years ago

It will be good if you add this feature, where you can specify if you want to make it download all chunks through torrent. meaning using webTorrent in server side too , because i tried it and i found that it always download 90% directly from the server sometimes more, it only download less than 10% from other clients. thanks for the great work.

pldubouilh commented 6 years ago

That's something that's tricky to handle - you want your stream to happen without breaks, and making it p2p-only might make it very choppy...

Although I have to agree, there are still lots of improvements that can be done on the p2p side ; I'll rename that issue to keep track of the improvements that can be done.

Er-rchydy commented 6 years ago

thanks, if i want to make it p2p-only do i need to change both sw.js and loader.js ? because manifest.m3u8 will contain only magnet links, i managed to edit sever side files but i have problem understanding sw.js and loader.js, i'll appreciate if you can make an other version of sw.js and loader.js who works only with magnet links. thanks a lot