Alpha
Validate a list of segments.
List of Segment from cmaf ham model
Optional
Optional: parent track id
Optional: validation object from parent previous validate method call
Validation
import cmaf, { Segment } from '@svta/common-media-library/cmaf-ham';...// const segments: Segment[] = ...;const validation = cmaf.validateSegments(segments); Copy
import cmaf, { Segment } from '@svta/common-media-library/cmaf-ham';...// const segments: Segment[] = ...;const validation = cmaf.validateSegments(segments);
Example output: { status: true|false, errorMessages: [...] }
{ status: true|false, errorMessages: [...] }
Validate a list of segments.