vod_clip_from_param_name
The `vod_clip_from_param_name` directive specifies the request parameter name from which to derive the start position for clipping video content.
Description
The vod_clip_from_param_name directive is part of the NGINX-based Video on Demand (VOD) Packager module. It allows users to define a specific request parameter name that indicates where the video should start clipping. This is particularly useful for clients requesting media files to play only a specific segment of the video. When the request is made, NGINX extracts the value of the specified parameter and uses it to determine the start time for playback, effectively enabling precise control over video segments served to users.
This directive works within the contexts of http, server, and location, allowing for flexible configuration based on different usage scenarios. The argument for this directive is a single string that defines the name of the request parameter. If the client includes this parameter in the request, its value will be parsed, and the video clipping will begin from that specified offset. Users should be aware that the parameter must be present in the request; otherwise, the clipping functionality will not activate, and the entire video may be served instead.
Config Example
server {
listen 80;
server_name example.com;
location /vod/ {
vod_clip_from_param_name clip_from;
# Additional VOD configuration
}
}Make sure the parameter specified is present in client requests; otherwise, clipping will not occur.
If the parameter contains a non-parsable value, the default video will be served without clipping.