Skip to content

Function: getUrlFromTemplate() ​

ts
function getUrlFromTemplate(
   representation, 
   segmentTemplate, 
   segmentId, 
   time?
): string;

Defined in: mapper/dash/mapDashToHam/utils/getUrlFromTemplate.ts:21

Internal

Create the url from a segment template.

Resolves the $RepresentationID$, $Number$, $Bandwidth$, $Time$, and $$ identifiers of the media attribute, with the format tags of ISO/IEC 23009-1 section 5.3.9.4.4. An identifier without a value stays in the url.

Parameters ​

representation ​

Representation

Representation of the template

segmentTemplate ​

SegmentTemplate

Segment template

segmentId ​

number

Segment number

time? ​

number

Start time of the segment in timescale units, for $Time$

Returns ​

string

url from the segment template

A Streaming Video Technology Alliance project.