@svta/common-media-library
    Preparing search index...

    Function hlsToHam

    • 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 Presentation[]

      List of presentations from ham

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

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

      const manifest = cmaf.hlsToHam(hlsManifest);