Skip to content

Function: hamToDash() ​

ts
function hamToDash(presentation): ManifestFile;

Defined in: services/converters/hamToDash.ts:24

Alpha

Convert HAM object into Dash Manifest.

Parameters ​

presentation ​

Presentation[]

List of presentations from ham

Returns ​

ManifestFile

Manifest object containing the Dash manifest as string

Example ​

Example on how to import the cmaf module and convert the ham presentations array into the dash manifest.

ts
import cmaf from '@svta/common-media-library/cmaf-ham';

const manifest = cmaf.hamToDash(presentations);

A Streaming Video Technology Alliance project.