Welcome! Log In Create A New Profile

Advanced

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

Posted by ubunginx 
Is it possible for NGINX to log the duration of a mp4 video file in access log?
January 05, 2021 10:09AM
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!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready