Skip to content

Function: readMvhd() ​

ts
function readMvhd<V>(cursor): MovieHeaderBox<V>;

Defined in: readers/readMvhd.ts:24

Read the mvhd box (MovieHeaderBox).

The 64-bit integer fields of the result have the type that the int64 function of the cursor returns. With no option, they are numbers.

Type Parameters ​

V ​

V extends IsoInt64

Parameters ​

cursor ​

IsoBoxReadCursor<V>

The read cursor at the first byte after the box header

Returns ​

MovieHeaderBox<V>

A parsed MovieHeaderBox

A Streaming Video Technology Alliance project.