Function: isContainer()
function isContainer<T>(box): box is T & IsoBoxContainer;Defined in: libs/iso-bmff/src/utils/isContainer.ts:15
Check if a box is a container
Type Parameters
T
T extends | IsoBox | Box< | "meta" | "meco" | "ardi" | "mp4a" | "enca" | "co64" | "stco" | "stz2" | "ctts" | "url " | "urn " | "dref" | "dinf" | "stts" | "stdp" | "elst" | "edts" | "emsg" | "elng" | "ftyp" | "free" | "skip" | "grpl" | "hdlr" | "hmhd" | "imda" | "imif" | "infe" | "iinf" | "iloc" | "frma" | "tenc" | "schi" | "schm" | "sinf" | "ipro" | "iref" | "labl" | "mdhd" | "nmhd" | "sdtp" | "avc1" | "avc2" | "avc3" | "avc4" | "hev1" | "hvc1" | "encv" | "stsd" | "sgpd" | "stsz" | "stsc" | "sbgp" | "stsh" | "stss" | "stbl" | "smhd" | "sthd" | "vmhd" | "minf" | "mdia" | "mdat" | "pitm" | "mehd" | "trex" | "mvex" | "mvhd" | "tkhd" | "tref" | "udta" | "trak" | "moov" | "mfhd" | "saio" | "saiz" | "senc" | "subs" | "tfdt" | "tfhd" | "trun" | "traf" | "moof" | "mfro" | "tfra" | "mfra" | "prsl" | "prft" | "pssh" | "sidx" | "styp" | "ssix" | "strk" | "kind" | "vttC" | "iden" | "payl" | "vttc" | "vtte" | "sttg" | "vlab">
Parameters
box
T
The box to check
Returns
box is T & IsoBoxContainer
true if the box is a container, false otherwise