vod_base_url

The 'vod_base_url' directive sets the base URL for Video On Demand (VOD) content in the NGINX-based VOD Packager module.

Syntaxvod_base_url URL;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The 'vod_base_url' directive is integral to the NGINX-based VOD Packager, as it defines the base URL path from which VOD content is served. This essentially allows the server to resolve paths for video files and related assets when handling requests. By setting this directive, system administrators can specify a consistent starting point for locating resources, enabling functionality such as adaptive streaming and range requests without needing to modify each individual resource path. It can be utilized in various contexts, such as http, server, or location, providing flexibility in how URLs are constructed across an entire server or specific locations.

The directive accepts a single argument, which should be a valid URL path (e.g., http://example.com/videos/). This argument must be provided to ensure that all resource links generated within the VOD Packager comply with the specified base URL. When the VOD Packager generates playlists and manifest files, it leverages the base URL set by this directive to construct absolute URLs for streams, making it crucial for proper client playback. If the directive is omitted or set incorrectly, clients may encounter issues when attempting to access video streams or files since the server will be unable to construct correct resource paths.

Config Example

vod_base_url http://example.com/videos/;

Ensure the URL ends with a '/' to avoid path construction issues.

Using an incorrect or inaccessible URL can lead to 404 errors for video assets.

Changing the base URL may require regenerating playlists and manifest files.

← Back to all directives