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

Medline video not working in production #280

Open
benoit74 opened this issue Oct 7, 2024 · 3 comments
Open

Medline video not working in production #280

benoit74 opened this issue Oct 7, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@benoit74
Copy link
Collaborator

benoit74 commented Oct 7, 2024

Why does the video on https://library.kiwix.org/viewer#medlineplus.gov_en_all_2024-10/medlineplus.gov/ency/anatomyvideos/000002.htm page is not playing despite being present in the ZIM, playable in other readers (I tested with Kiwix Apple on Mac OS) and in dev at https://dev.library.kiwix.org/viewer#medlineplus.gov_en_all_2024-09/medlineplus.gov/ency/anatomyvideos/000002.htm

@benoit74 benoit74 added the bug Something isn't working label Oct 7, 2024
@benoit74 benoit74 self-assigned this Oct 7, 2024
@benoit74
Copy link
Collaborator Author

benoit74 commented Oct 7, 2024

Directly loading the page on a library-data backend (with a port forward in k9s) allow to not have error message on the page. But then playing video fails and connection get stuck.

Deleting and recreating the port forward unblocks the connection.

Directly loading the video with http://localhost:8898/content/medlineplus.gov_en_all_2024-10/medlineplus.gov/ency/videos/mov/200094_eng.mp4 does not work at all.

I don't get which difference between dev and prod could cause this difference of behavior.

@rgaudin should I open an upstream issue or do you have any idea of any flag we used which might cause this issue?

@rgaudin
Copy link
Member

rgaudin commented Oct 7, 2024

Aren't you looking for a complicated reason while there's a simple one?

That first link doesn't work on Firefox indeed but with an error message in the console:

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." }

In Chrome, it works perfectly.

Haven't checked online source but if it's working with FF, maybe the website and/or video.js is serving different encodings based on what the client browser support. Given the crawler is chrome based, that would explain it.

@benoit74
Copy link
Collaborator Author

benoit74 commented Oct 7, 2024

And now it is working in Firefox on my machine ... didn't changed anything ... weird.

I tried a different video from https://library.kiwix.org/content/medlineplus.gov_en_all_2024-10/medlineplus.gov/anatomyvideos.html and I achieved to get the bug also on Chrome.

Waiting a bit, the video then works in most cases (but https://library.kiwix.org/content/medlineplus.gov_en_all_2024-10/medlineplus.gov/ency/anatomyvideos/000068.htm is still failing ATM, but other which failed first are now working).

Some video work right away.

I understand mostly nothing on what is going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants