Skip to content

Function: hamToHls() ​

ts
function hamToHls(presentation): ManifestFile;

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

Alpha

Convert ham object into a hls manifest.

Parameters ​

presentation ​

Presentation[]

List of presentations from ham

Returns ​

ManifestFile

Manifest object containing the Hls manifest as string and its playlists

Example ​

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

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

const manifest = cmaf.hamToHls(presentations);

A Streaming Video Technology Alliance project.