Function: hlsToHam()
ts
function hlsToHam(manifest, ancillaryManifests): Presentation[];Defined in: services/converters/hlsToHam.ts:24
Alpha
Convert hls manifest into a ham object.
Parameters
manifest
string
String of the Main manifest
ancillaryManifests
string[]
Ancillary Manifests . Must be in order, first audio, subtitle and video
Returns
List of presentations from ham
Example
Example on how to import the cmaf module and convert the hls manifest and ancillaryManifests array into the ham manifest.
ts
import cmaf from '@svta/common-media-library/cmaf-ham';
const manifest = cmaf.hlsToHam(hlsManifest);