nginx-vod-module icon indicating copy to clipboard operation
nginx-vod-module copied to clipboard

Fetching of MP4 files from upstream with a 302 redirect

Open radiantshaw opened this issue 4 years ago • 3 comments

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?

radiantshaw avatar Apr 05 '20 14:04 radiantshaw

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

erankor avatar Apr 05 '20 20:04 erankor

Has your problem been resolved?

gianght90 avatar Aug 25 '22 09:08 gianght90

@gianght90 I'm not working on the project anymore. But thanks for the help. You may close the issue.

radiantshaw avatar Aug 25 '22 11:08 radiantshaw