@svta/common-media-library
Version:
A common library for media playback in JavaScript
21 lines • 603 B
TypeScript
import type { Presentation } from '../../types/model/Presentation.js';
/**
* Convert dash manifest into a ham object.
*
* @example
* Example on how to import the cmaf module and convert the dash `manifest`
* into the ham manifest.
* ```ts
* import cmaf from '@svta/common-media-library/cmaf-ham';
*
* const manifest = cmaf.dashToHam(dashManifest);
* ```
*
* @param manifest - String of the XML Dash manifest
* @returns List of presentations from ham
*
* @group CMAF
* @alpha
*/
export declare function dashToHam(manifest: string): Presentation[];
//# sourceMappingURL=dashToHam.d.ts.map