Skip to content

Type Alias: MerkleSegmentState ​

ts
type MerkleSegmentState = object;

Defined in: merkle/MerkleSegmentValidation.ts:32

Continuity state carried between calls to validateC2paMerkleSegment. Reset (pass undefined) after a seek.

lastLocations is keyed by ${uniqueId}:${localId}, matching the MerkleMap fields of the track it tracks. The first location seen for a key is always accepted (no prior state to compare against), so a caller that needs strict start-at-zero enforcement must seed this map itself.

Properties ​

lastLocations ​

ts
readonly lastLocations: ReadonlyMap<string, number>;

Defined in: merkle/MerkleSegmentValidation.ts:33

A Streaming Video Technology Alliance project.