Open creasysee opened 2 years ago
Additional information. The request to the API by URL: https://peertube.ignifi.me/api/v1/videos/mHKbbkrsKkFTnjMd4WRc8R returns JSON and it has information about redundancies: $.streamingPlaylists[0].redundancies:
Could someone give advice on how to build a custom Exoplayer MediaSource, please? I will try to implement it.
Hi all.
The Peertube provides functionality for playing video from multiple instances (it is not a torrent and it is not P2P). Some instances is configured so, that they have a redundancy strategy thats allow store copy of videos from other instances in a federation.
This is the main feature that allows to reduce the load on the instance for recently-added and most-viewed videos.
For example: https://peertube.ignifi.me/w/mHKbbkrsKkFTnjMd4WRc8R
Player shows 3 peers:
DevTools:
So, the Peertube player is downloading streams from 3 instances in a federation. This described also here.
I understand that this is not a high priority issue, but it can be a big problem for some instances if a lot of people use the application and use only one instance instead of federation. The instance will overloaded.
I've gone very deep into how it works, but I can't get Exoplayer to work with multiple sources. Thanks!