Function: hamToDash()
ts
function hamToDash(presentation): ManifestFile;Defined in: services/converters/hamToDash.ts:24
Alpha
Convert HAM object into Dash Manifest.
Parameters
presentation
List of presentations from ham
Returns
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);