Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.08k stars 1.51k forks source link

Hide unavailable videos #987

Open nbrucy opened 6 years ago

nbrucy commented 6 years ago

When browsing on a peertube instance, an user can click on video hosted on a server that is currently out of service. He won't be able to play the video, seeing the message "Sorry, but this video is not available because the remote instance is not responding.Please try again later. ".

This is frustrating, even more if the video is "Trending".

One way to avoid this kind of frustration would be to hide the video when an user click on it and is unable to play it because the remote instance is down. Then the video (or the remote server) is regularly pinged until it is available again, and when it is the case, the video would reappear. Of course, if the server is unavailable for too long it should be unfollowed which is I think the current behaviour.

PS : video replication is a complementary way to tackle this issue.

ghost commented 6 years ago

I am using uMatrix, and by default only first party hosts are allowed. So all remote hosts are blocked and I get the "unavailable" message until I enable the other domains.

So at this point I know I have to enable this. If you filter all those videos, my trending pages would probably be empty.

Not the biggest problem (mainly my own), just saying in case there is a better solution.

Nutomic commented 6 years ago

@BO41 this kind of test should run on the server, so it wouldn't affect you.