kiwix / operations

Kiwix Kubernetes Cluster
http://charts.k8s.kiwix.org/
7 stars 0 forks source link

Medline video not working in production #280

Open benoit74 opened 1 week ago

benoit74 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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.