UNPKG

@svta/common-media-library

Version:
22 lines 757 B
import type { Presentation } from '../../types/model/Presentation.js'; /** * Convert hls manifest into a ham object. * * @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); * ``` * * @param manifest - String of the Main manifest * @param ancillaryManifests - Ancillary Manifests . Must be in order, first audio, subtitle and video * @returns List of presentations from ham * * @group CMAF * @alpha */ export declare function hlsToHam(manifest: string, ancillaryManifests: string[]): Presentation[]; //# sourceMappingURL=hlsToHam.d.ts.map