Function: writeHdlr()
ts
function writeHdlr(cursor, box): void;Defined in: writers/writeHdlr.ts:25
Write the hdlr box (HandlerBox).
ISO/IEC 14496-12:2015 - 8.4.3
Parameters
cursor
The write cursor
box
The HandlerBox fields to write
Returns
void
Throws
RangeError if a value of the box does not fit its field.
Throws
RangeError if handlerType does not have 4 characters.
Example
ts
const writer = writeIsoBox(
{
type: 'hdlr',
version: 0,
flags: 0,
preDefined: 0,
handlerType: 'vide',
reserved: [0, 0, 0],
name: 'Video',
},
{ writers: { hdlr: writeHdlr } },
)