Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Is it possible for NGINX to log the duration of a mp4 video file in access log?

$
0
0
I tried configuring the X-Content-Duration HTTP header (which is no longer supported by Firefox) in nginx configuration but no value is logged.

I can add a custom HTTP header (like video_duration) pointing to the path of a video file and manually assign the value, acting as a band-aid solution.

Is there a way to log the duration of a mp4 video file served to visitors in the access log, similar to how a file's content-length (in bytes) can be logged? Thanks!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>