# 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 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm