Function: calculateDuration()
ts
function calculateDuration(duration, timescale): number;Defined in: mapper/dash/mapDashToHam/utils/calculateDuration.ts:12
Internal
Calculates the duration of a segment.
segmentDuration = duration / timescale
Parameters
duration
string | undefined
Duration of the segment
timescale
string | undefined
Timescale of the segment
Returns
number
Segment duration