Project

General

Profile

can not preview video

Added by crystal su 8 months ago

This is my redmine environment information. I saw that the official website redmine4.0 began to support online preview videos.

When I was browsing the uploaded video online, the following error message occurred. (Video in mp4 format, h264 encoding)

when I adjust to the browser's debugger, it shows an Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable, does this mean that mp4 format video playback is not supported? I am a beginner of redmine service. If it is a service configuration problem, besides the general configuration in the following figure, I am not sure what else needs to be configured. Thank you for your reply


Replies (5)

RE: can not preview video - Added by Holger Just 8 months ago

This was also cross-posted to #38982

RE: can not preview video - Added by crystal su 8 months ago

Thank you very much when I added proxy_set_header Host $host; Rules in the nginx configuration file, the video can play normally thanks!

RE: can not preview video - Added by crystal su 8 months ago

Holger Just wrote in RE: can not preview video:

This was also cross-posted to #38982

Bother you again
When I preview and play the video of redmine service on my browser, it can be played normally after your suggestion. However, when I opened the debugging mode to check Headers, I found that the request to access a video was sent through http and then jumped to https. Can I send https request directly

RE: can not preview video - Added by Holger Just 8 months ago

You need to set a header in nginx which indicates on the backend application server that the original request was made over https and thus included resources should also be included via https. This can be achieve be including the following settings into your nginx location:

proxy_set_header X-Forwarded-Proto $scheme;

See HowTo_configure_Nginx_to_run_Redmine for a more exhaustive example of how to configure nginx (here with thin as a backend server, but this can be adjusted to other application servers).

RE: can not preview video - Added by crystal su 8 months ago

Holger Just wrote in RE: can not preview video:

You need to set a header in nginx which indicates on the backend application server that the original request was made over https and thus included resources should also be included via https. This can be achieve be including the following settings into your nginx location:

[...]

See HowTo_configure_Nginx_to_run_Redmine for a more exhaustive example of how to configure nginx (here with thin as a backend server, but this can be adjusted to other application servers).

Ok, I see thanks for you replay

    (1-5/5)