Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

googlevideo.com issues with HTTPS redirect in firefox #161

Closed
T4eus opened this issue Sep 12, 2018 · 14 comments
Closed

googlevideo.com issues with HTTPS redirect in firefox #161

T4eus opened this issue Sep 12, 2018 · 14 comments
Labels
bug Something isn't working stale

Comments

@T4eus
Copy link

T4eus commented Sep 12, 2018

I saw there was a problem with ublock origin blocking pre-fetching

https://github.com/gorhill/uBlock/wiki/Dashboard:-Settings#disable-pre-fetching
https://en.wikipedia.org/wiki/Link_prefetching

If I uncheck "Disable pre-fetching" at ublock origin, whorks fine, with this checked (what is the default), invidio.us didn't work properly

This just occurs at firefox, chrome doesn't have this issue, at least in my testes

this maybe related to #160 and #151

@omarroth
Copy link
Contributor

Would this perhaps be fixed by #153 in combination with proxying video files as well?

@T4eus
Copy link
Author

T4eus commented Sep 14, 2018

I don't have any idea, why this occur, and even less how to fix this

note:

On Chromium 51 and above (including browsers based on Chromium 51 and above), this setting does not block DNS lookups and preconnections.

maybe this explain why this not affect chrome, but I looked on the code and don't saw those things

@T4eus
Copy link
Author

T4eus commented Sep 14, 2018

at Ublock Origin sub-reddit

https://www.reddit.com/r/uBlockOrigin/comments/9fvc28/question_invidious_isnt_working_with_disable/

@T4eus
Copy link
Author

T4eus commented Sep 15, 2018

instance of uncheck "Disable pre-fetching", I can just use this rule
||invidio.us/js/video.min.js$script,first-party

@T4eus
Copy link
Author

T4eus commented Sep 17, 2018

having the same problem again

@omarroth
Copy link
Contributor

I think I'm going to close this in favor of #160, as it appears to be a duplicate and there is more information available there.

As a workaround until #160 is closed, try disabling Fanboy's Social Blocking and Fanboy's Annoyance List. If that does not fix it, feel free to reopen this. If, after #160 is closed, you are still encountering this issue, again feel free to reopen.

@omarroth
Copy link
Contributor

omarroth commented Sep 17, 2018

My mistake. If the workaround mentioned above resolves the issue, then we can close this in favor of #160,

@T4eus
Copy link
Author

T4eus commented Sep 20, 2018

I think is a problem related to latency, the player may not see the video URL in time, and show a error messenger.

UBO maybe just make firefox less tolerant with the latency for prevent pre-fetch.

is this what I think, because when I get error and look to the source code, the video is there, and when reopen on another tab the video plays.

@T4eus
Copy link
Author

T4eus commented Sep 22, 2018

I think, I finally realize whats occuring at all.

This isn't related to UBO (but may this interfere in some way because in my tests looks that when using UBO have more chances to this occur).

Using network monitor I noted that when I get the connection to googlevideo.com this is primary made using HTTP, and later redirected to HTTPS.

I also noted that googlevideo.com dosen't works without a HTTPS connection.

Well, I imagine invidio.us made connections using HTTP and the browser redirects to HTTPS, but sometimes this don't occurs in time for the player, and get the error.

Sometimes interations like open the video on other tab makes the video works (disable prefetch on UBO maybe have this effect, because of this I proposed this relation, at start).

This is also why I don't have problems with the firefox default player, this player wait the HTTP-to-HTTPS redirect.

As a temporary fix (and as a way to test) I'm using HTTPS everywhere.
EDIT: didn't help as expected

May this occurs to me, because the excessive latency I have with in videos (200ms).

@T4eus T4eus changed the title pre-fetching issue in ublock origin with firefox googlevideo.com issues with HTTPS redirect in firefox Sep 22, 2018
@T4eus
Copy link
Author

T4eus commented Sep 22, 2018

image

@omarroth
Copy link
Contributor

That's interesting. As far as I know Invidious uses HTTPS for all resources it serves. What happens if you try to access video link directly? You can append &raw=1 to the watch URL to redirect.

@T4eus
Copy link
Author

T4eus commented Sep 24, 2018

That's interesting. As far as I know Invidious uses HTTPS for all resources it serves. What happens if you try to access video link directly? You can append &raw=1 to the watch URL to redirect.

works fine, but I undertand why

@T4eus
Copy link
Author

T4eus commented Sep 24, 2018

looks this:

  1. invidio.us send my a link like this, https://r6---sn-ab5szn7k.googlevideo.com/
  2. who redirect me to this, https://r2---sn-cg51pauxax-28ie.googlevideo.com/
  3. and finally this, https://r6---sn-bg0e7n7r.googlevideo.com/

all diferrent URL, this may because invidio.us generate a link based on american region, but I'm outside america.

googlevideos take me to a different server, and the player can't follow this.

in some time of this process the connection is HTTP, as firefox report in the network monitor

@github-actions
Copy link

github-actions bot commented Dec 2, 2020

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

@github-actions github-actions bot added the stale label Dec 2, 2020
@github-actions github-actions bot closed this as completed Jan 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants