Video playback issue on Seafile Docker version 12

Hello everyone,

I’m facing an issue with video playback on my Seafile server (installed using Docker, version 12 – the latest version).

Sometimes, videos I upload are playable without any problems, but other times, I encounter the following error:

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

What’s even stranger is that a video might work initially, but later, it becomes unplayable, showing the same error.

I’ve tried searching for solutions online by looking up the error message, but I couldn’t find anything specifically related to Seafile.

Has anyone experienced this issue? Could it be related to the way Seafile handles video files, or is it something else entirely? Any help or advice would be greatly appreciated.

Thanks in advance!

Did you solve this? I encountered the same issue and found in logs a Django warning about CSRF.

I added

ALLOWED_HOSTS = ['I am not allowed to post URL -- your host without schema','127.0.0.1']
CSRF_TRUSTED_ORIGINS = [' I am not allowed to post URL -- your domain with schema ']

to

$SEAFILE_DATA/seafile/conf/seahub_settings.py

In my case it was important to allow 127.0.0.1 too for internal Docker communication.