@svta/common-media-library
Version:
A common library for media playback in JavaScript
22 lines • 726 B
TypeScript
import type { Manifest } from '../../types/manifest/Manifest.js';
import type { Presentation } from '../../types/model/Presentation.js';
/**
* Convert ham object into a hls manifest.
*
* @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);
* ```
*
* @param presentation - List of presentations from ham
* @returns Manifest object containing the Hls manifest as string and its playlists
*
* @group CMAF
* @alpha
*/
export declare function hamToHls(presentation: Presentation[]): Manifest;
//# sourceMappingURL=hamToHls.d.ts.map