Conditional proxying

I added a new feature. When instances are not proxied, Yattee first checks the URL to make sure it is not a restricted video. Usually, music videos and sports content can only be played back by the same IP address that requested the URL in the first place. That is why some videos do not play when the proxy is disabled.

This approach has multiple advantages. First and foremost, It reduced the load on Invidious/Piped instances, since users can now directly access the videos without going through the instance, which might be severely bandwidth limited. Secondly, users don't need to manually turn on the proxy when they want to watch IP address bound content, since Yattee automatically proxies such content.

Furthermore, adding the proxy option allows mitigating some severe playback issues with invidious instances. Invidious by default returns proxied URLs for videos, and due to some bug in the Invidious proxy, scrubbing or continuing playback at a random timestamp can lead to severe wait times for the users.

This should fix numerous playback issues: #666, #626, #590, #585, #498, #457, #400
This commit is contained in:
Toni Förster
2024-05-09 20:07:55 +02:00
parent 1fe8a32fb8
commit 6eba2a45c8
39 changed files with 434 additions and 126 deletions

View File

@@ -282,11 +282,11 @@
"Large layout is not suitable for all devices and using it may cause controls not to fit on the screen." = "Le grand format n'est pas adapté à tous les appareils et son utilisation peut empêcher certains contrôles de s'afficher à l'écran.";
/* Loading stream OSD */
"Loading streams..." = "Chargement des flux...";
"Loading streams" = "Chargement des flux";
"Lock portrait mode" = "Verrouille l'orientation en mode portrait";
"Matrix Channel" = "Salon Matrix";
"Only when signed in" = "Uniquement lorsque vous êtes connecté";
"Opening audio stream..." = "Ouverture du flux audio…";
"Opening audio stream" = "Ouverture du flux audio…";
"Orientation" = "Orientation";
/* SponsorBlock category name */
@@ -424,7 +424,7 @@
"Milestones" = "Étapes";
/* Loading stream OSD */
"Opening %@ stream..." = "Ouverture du flux %@…";
"Opening %@ stream" = "Ouverture du flux %@…";
"Regular size" = "Taille normale";
"Regular Size" = "Taille normale";
"Related" = "En relation";
@@ -567,7 +567,7 @@
"Seek" = "Recherche";
"Show scroll to top button in comments" = "Afficher le bouton de retour en haut de la page dans les commentaires";
"Opened File" = "Fichier ouvert";
"Opening file..." = "Ouverture du fichier...";
"Opening file" = "Ouverture du fichier";
"Enter location address to connect..." = "Entrez l'adresse de l'instance pour se connecter...";
"File Extension" = "Extension de fichier";
"Public account" = "Compte publique";