Skip to content

Function: parseFrameRate() ​

ts
function parseFrameRate(frameRate): number;

Defined in: parseFrameRate.ts:12

Parses a DASH framerate string into a number.

Parameters ​

frameRate ​

string

The frame rate string to parse.

Returns ​

number

The frame rate as a number.

Example ​

ts
const result = parseFrameRate('24000/1001')

equal(result, 23.976023976023978)

A Streaming Video Technology Alliance project.