Skip to content

Function: validatePresentation() ​

ts
function validatePresentation(presentation): Validation;

Defined in: services/validators/validatePresentation.ts:31

Alpha

Validate a presentation. It validates in cascade, calling each child validation method.

Validations:

  • Presentation has id

Parameters ​

presentation ​

Presentation

Presentation from cmaf ham model

Returns ​

Validation

Validation

Example ​

ts
import cmaf, { Presentation } from '@svta/common-media-library/cmaf-ham';
...

// const presentation: Presentation = ...;

const validation = cmaf.validatePresentation(presentation);

Example output: { status: true|false, errorMessages: [...] }

A Streaming Video Technology Alliance project.