nginx-vod-module
nginx-vod-module copied to clipboard
Fetching of MP4 files from upstream with a 302 redirect
We're trying to implement Video on Demand using this module with HLS configuration in Remote mode. We have a Rails server responsible for serving the MP4 files. The way our setup is done is that the upstream URL given to the VOD module to fetch MP4 files does not actually serve files directly and instead redirects to the actual file (on a different URL) using a 302 status code. The issue that we're facing is that the VOD module is throwing an error saying bad response code.
Any way to solve it?
If the upstream server that returns the redirect is in your control, the easiest solution is to configure the module in mapped mode, and have it return a JSON instead
Has your problem been resolved?
@gianght90 I'm not working on the project anymore. But thanks for the help. You may close the issue.