HlsRung
type HlsRung = { bandwidth: number; durationSec?: number; height: number; name: string; segments?: number; url: string; width: number;};Defined in: packages/asset-client/dist/index.d.ts:932
One rung of an adaptive HLS ladder.
segments / durationSec are what make a ladder JUDGEABLE rather than
merely present. Measured on a prod ladder of an 87 s 4K source: 240p cut at
14.35 s in 12 segments, 720p at 5.63 s in 12, 2160p at 5.88 s in 14. Cuts
that do not line up cannot be swapped, and a swap is what a rendition switch
IS — so that ladder looked complete and adapted badly. One segment means zero
switch points: whichever rung the player opens on is the rung it finishes on.
Both are optional because a rung whose playlist could not be read is recorded
WITHOUT them rather than with a zero — unmeasured and none are different
facts, and a 0 there would read as the latter.
Properties
Section titled “Properties”bandwidth
Section titled “bandwidth”bandwidth: number;Defined in: packages/asset-client/dist/index.d.ts:939
BANDWIDTH in bits per second.
durationSec?
Section titled “durationSec?”optional durationSec?: number;Defined in: packages/asset-client/dist/index.d.ts:945
Sum of the #EXTINF values, seconds.
height
Section titled “height”height: number;Defined in: packages/asset-client/dist/index.d.ts:937
name: string;Defined in: packages/asset-client/dist/index.d.ts:934
Rung directory / identity — "720p".
segments?
Section titled “segments?”optional segments?: number;Defined in: packages/asset-client/dist/index.d.ts:943
#EXTINF count.
url: string;Defined in: packages/asset-client/dist/index.d.ts:941
Absolute URL of this rung’s media playlist.
width: number;Defined in: packages/asset-client/dist/index.d.ts:936
RESOLUTION from the master playlist.