Media Server 25.4
Media Server Help

# MediaSegmentTemplate

A template to use to construct the URL of every media segment in a playlist.

The value of this parameter should include "http://" and the host name and port of the web server that serves items in an HLS playlist to a media player. The value to use depends on how you have configured the web server that serves video from your rolling buffer.

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. | News
{rollingBufferRelativePathToTsFile} | The relative path to the transport stream file in the rolling buffer. | 143/5/750453/stream1_VIDEO_ENG_1435750453.ts
{byteStart} | The start point for the segment (as a byte-range). | 1024000
{byteEnd} | The end point for the segment (as a byte-range). | 2048000

Type: | String
Default: | {stream}/Video/{rollingBufferRelativePathToTsFile}
Required: | Required in Defaults section Optional in a section that defines a stream
Configuration Section: | MyStream or Defaults
Example: | `MediaSegmentTemplate=http://webserver/{stream}/Video/{rollingBufferRelativePathToTsFile}?range=bytes={byteStart}-{byteEnd}`
See Also: | VariantSegmentTemplate

Copyright 2025 Open Text
Version 25.4 | Last updated October 2025

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 25.4

Topic Title: MediaSegmentTemplate