Media Server 26.1
Media Server Help

# VariantSegmentTemplate

A template to use to construct the URL of every `GetPlaylist` action that is produced by Media Server, including the "http://" prefix. Setting this action parameter overrides the value set by the VariantSegmentTemplate configuration parameter in the rolling buffer configuration file.

You should only need to set this parameter if your media player sends requests to an application in front of Media Server.

You can use the following macros:

Macro | Description | Example Value
--- | --- | ---
{stream} | The name of the stream, as requested by the GetPlaylist action. | News
{startTime} | The start time for the content requested by the GetPlaylist action. | 2015-02-05T12:38:21Z
{duration} | The duration of the content requested by the GetPlaylist action. | 10000
{offset} | The amount of time in milliseconds that the playlist is offset from being live, as set by the GetPlaylist action. | 60000
{hlsVersion} | The HLS version of the playlist requested by the GetPlaylist action. | 4
{format} | The format of the playlist, requested by the GetPlaylist action. | m3u8
{mediaSegmentTemplate} | The media segment template specified by the GetPlaylist action. |
{variantSegmentTemplate} | The variant segment template specified by the GetPlaylist action. |

Actions: | AddStream, EditStream, GetPlaylist
Type: | String
Default: | The value of VariantSegmentTemplate
Example: | `VariantSegmentTemplate=http://mediaserver:14000/action=getPlaylist&stream={stream}&startTime={startTime}&duration={duration}&offset={offset}&liveUrl={liveUrl}&hlsVersion={hlsVersion}&format={format}&mediaSegmentTemplate={mediaSegmentTemplate}&variantSegmentTemplate={variantSegmentTemplate}`
See Also: | MediaSegmentTemplate

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Media Server 26.1

Topic Title: VariantSegmentTemplate