4 ms·
This is very confusing to me too. WebTorrents are just torrents over WebRTC Data stream, I guess by "P2P HLS" they mean sending HLS over either WebRTC Data or V
by pzmarzly 3y ago
This is very confusing to me too. WebTorrents are just torrents over WebRTC Data stream, I guess by "P2P HLS" they mean sending HLS over either WebRTC Data or Video stream?
- hutzlibu 3y agoBut if you stream from the server, it still would still not be p2p. SO either they implemented their own custom p2p solution, where the peers stream HLS to other peers, or they abandoned p2p. edit: the main FAQ on the website still clearly says, it is p2p. But now I am curious if they really implemented their own p2p solution, or if this is outdated. https://joinpeertube.org/en_US#what-are-the-main-advantages-of-peertube https://joinpeertube.org/en_US#what-are-the-main-advantages-...
- jelv 3y ago"WebTorrent is a wonderful library that allowed PeerTube to be created five years ago. But due to many limitations of the library we decided to implement and default to another P2P protocol used in coordination with HLS. This new HLS player works very well, and does not have all the limitations of the WebTorrent player. It also allowed us to implement live streaming in PeerTube." https://github.com/Chocobozzz/PeerTube/issues/5465 https://github.com/Chocobozzz/PeerTube/issues/5465
- hutzlibu 3y agoThanks, now I am really curious to try that out and see how it works under the hood. What I need, would also be the option to ask users first, if they want to upload as well. People on a mobile connection should be able to opt out. (Quick search did not reveal this).
- errhead 3y agoThis is what they use https://github.com/chocobozzz/p2p-media-loader https://github.com/chocobozzz/p2p-media-loader forked from novage a while back. Nice explanation with diagrams at the link. It has worked surprisingly well in my testing during livestreams when you can count on multiple simultaneous viewers.
- bilekas 3y agoTheir source code is on Github, though took a min to find. I'm still going through it, but I suspect so far they are transcoding via HLS and then streaming it out over the p2p connection. The p2p connetion itself is interesting again, I suspect a regular websocket that is sitting on their express server.. but will dig some more. Was always curious . https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts https://github.com/Chocobozzz/PeerTube/blob/develop/client/s...