hlsLadderAlignment
function hlsLadderAlignment(rungs): { aligned: boolean | null; ceilingHeight: number; floorHeight: number; minSegments: number | null; rungCount: number; switchable: boolean;};Defined in: packages/asset-client/src/index.ts:352
What the recorded rungs actually support — computed here, never stored, so one rule serves every consumer and a change to it does not need a backfill.
switchable: more than one rung AND more than one segment. False means the player is pinned to whatever rung it opens on for the entire clip.aligned: every measured rung reports the same segment count.nullmeans fewer than two rungs were measured — unknown, not false. Treating that asfalserejects ladders nobody looked at.ceilingHeight: the tallest rung. The ceiling of any composition using it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
rungs |
HlsRung[] |
Returns
Section titled “Returns”{ aligned: boolean | null; ceilingHeight: number; floorHeight: number; minSegments: number | null; rungCount: number; switchable: boolean;}aligned
Section titled “aligned”aligned: boolean | null;ceilingHeight
Section titled “ceilingHeight”ceilingHeight: number;floorHeight
Section titled “floorHeight”floorHeight: number;minSegments
Section titled “minSegments”minSegments: number | null;rungCount
Section titled “rungCount”rungCount: number;switchable
Section titled “switchable”switchable: boolean;