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 #5442

Closed
T4eus opened this issue Sep 20, 2018 · 17 comments
Closed

googlevideo.com issues with HTTPS redirect in firefox #5442

T4eus opened this issue Sep 20, 2018 · 17 comments
Labels
outdated Things closed automatically by stalebot

Comments

@T4eus
Copy link

T4eus commented Sep 20, 2018

Description

Briefly describe the issue.
Include a reduced test case, we have a starter template on JSBin you can use.

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.
1.using Ublock origin at firefox
2.go to https://invidio.us/
3.try to watch some videoes

Results

some videos don't work properly using ublock origin, at least with the "disable pre-fetch" checked

Expected

as the "disable pre-fetch" is a default setting, I expect to work with it, but on https://invidio.us/ some videos don't work with this option

Actual

Please describe what actually happened.

Error output

The media could not be loaded, either because the server or network failed or because the format is not supported

Additional Information

Please include any additional information necessary here. Including the following:

versions

videojs

what version of videojs does this occur with?

browsers

Firefox

OSes

Windows 10

plugins

are any videojs plugins being used on the page? If so, please list them below.

@welcome
Copy link

welcome bot commented Sep 20, 2018

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@gkatsev
Copy link
Member

gkatsev commented Sep 20, 2018

I took a look at a few videos and they worked just fine even with pre-fetch enabled. Is there a particular video on that site that you can reliably cause to fail?
Theoretically, pre-fetching failing should be transparent and when the request is made for real it'll go through. I'm guessing that the pre-fetch being blocked is somehow prevent the real request from going through still.

@T4eus
Copy link
Author

T4eus commented Sep 20, 2018

image
https://invidio.us/watch?v=z04XOX_XVJA
VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. Object { code: 4, message: "The media could not be loaded, either because the server or network failed or because the format is not supported." } video.min.js:1:30651 Ze https://invidio.us/js/video.min.js:1:30651 Ge.error https://invidio.us/js/video.min.js:1:31392 Fo</e.prototype.error https://invidio.us/js/video.min.js:6:31825 Fo</e.prototype.handleTechError_ https://invidio.us/js/video.min.js:6:22119 n https://invidio.us/js/video.min.js:2:2073 n https://invidio.us/js/video.min.js:2:2073 X/n.dispatcher https://invidio.us/js/video.min.js:1:7127

and also
https://invidio.us/watch?v=_Fxil2QY0wE
https://invidio.us/watch?v=IJwFhK-UsM0
https://invidio.us/watch?v=HKp-r0eTK9U

@T4eus
Copy link
Author

T4eus commented Sep 20, 2018

Mozilla Firefox 62.0 64-bits
Windows 10 1803 64-bits
Ublock Origin 1.16.20

@T4eus
Copy link
Author

T4eus commented Sep 20, 2018

all works before unckeck "disable prefetch"
exept this one, maybe another error
https://invidio.us/watch?v=_Fxil2QY0wE

@gkatsev
Copy link
Member

gkatsev commented Sep 20, 2018

All those worked for me, though, I am on macOS. Also, it seems like these all loaded mp4s for me. Is it loading HLS for you?

@gkatsev
Copy link
Member

gkatsev commented Sep 20, 2018

I'll try and check it out on a win10 machine.

@gkatsev
Copy link
Member

gkatsev commented Sep 20, 2018

Just tried on a win10 machine and still couldn't reproduce, unfortunately.

@T4eus
Copy link
Author

T4eus commented Sep 21, 2018

I will investigate more, maybe is something related just to me

@gkatsev
Copy link
Member

gkatsev commented Sep 21, 2018

Maybe another extension as well? Try disabling all other extensions.

Let us know.

@T4eus
Copy link
Author

T4eus commented Sep 21, 2018

I don't have any other, just UBO, I think the players loads before the video source, and get a error, running ping I get 200ms of latency, what you think?

thanks for attention

@T4eus
Copy link
Author

T4eus commented Sep 24, 2018

@T4eus T4eus changed the title issue with Ublock origin (at invidio.us) googlevideo.com issues with HTTPS redirect in firefox Sep 24, 2018
@mister-ben
Copy link
Contributor

I tried thottling bandwidth and it made no difference for me: some videos load, others do not. The ones that do not are simply 403 responses, likely because the You Tube CDN URLs they are scraping expire.

@gkatsev
Copy link
Member

gkatsev commented Sep 25, 2018

Based on iv-org/invidious#161 (comment), it's possible that this is a googlevideo redirect issue and not something we can do anything about

@T4eus
Copy link
Author

T4eus commented Sep 25, 2018

but if I use firefox default player, I don't get the error.
if I open the video source on other tab and wait the redirect, I can reload the invidio.us page and it will work.

this problem don't occurs on chrome, all videos plays well.

this fail specifically on the videojs player at firefox,
if get the redirect on external tab, and retry videojs player, it works.

@gkatsev
Copy link
Member

gkatsev commented Oct 3, 2018

Unfortunately, I'm not really sure if there's anything we can do here. URLs are transparent to us and mp4 loading is handled directly by the browser.

@stale
Copy link

stale bot commented Dec 2, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the outdated Things closed automatically by stalebot label Dec 2, 2018
@stale stale bot closed this as completed Dec 9, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated Things closed automatically by stalebot
Projects
None yet
Development

No branches or pull requests

3 participants