Home Reference Source
public class | source

MP4

Static Method Summary

Static Public Methods
public static

avc1(track: *): *

public static

box(type: *): *

public static

esds(track: *): *

public static

hdlr(type: *): *

public static

init()

public static

initSegment(tracks: *): *

public static

mdat(data: *): *

public static

mdhd(timescale: *, duration: *): *

public static

mdia(track: *): *

public static

mfhd(sequenceNumber: *): *

public static

minf(track: *): *

public static

moof(sn: *, baseMediaDecodeTime: *, track: *): *

public static

moov(): *

public static

mp3(track: *): *

public static

mp4a(track: *): *

public static

mvex(tracks: *): *

public static

mvhd(timescale: *, duration: *): *

public static

sdtp(track: *): *

public static

stbl(track: *): *

public static

stsd(track: *): *

public static

tkhd(track: *): *

public static

traf(track: *, baseMediaDecodeTime: *): *

public static

trak(track: *): Uint8Array

Generate a track box.

public static

trex(track: *): *

public static

trun(track: *, offset: *): *

Static Public Methods

public static avc1(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static box(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public static esds(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static hdlr(type: *): * source

Params:

NameTypeAttributeDescription
type *

Return:

*

public static init() source

public static initSegment(tracks: *): * source

Params:

NameTypeAttributeDescription
tracks *

Return:

*

public static mdat(data: *): * source

Params:

NameTypeAttributeDescription
data *

Return:

*

public static mdhd(timescale: *, duration: *): * source

Params:

NameTypeAttributeDescription
timescale *
duration *

Return:

*

public static mdia(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static mfhd(sequenceNumber: *): * source

Params:

NameTypeAttributeDescription
sequenceNumber *

Return:

*

public static minf(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static moof(sn: *, baseMediaDecodeTime: *, track: *): * source

Params:

NameTypeAttributeDescription
sn *
baseMediaDecodeTime *
track *

Return:

*

public static moov(): * source

Params:

NameTypeAttributeDescription
tracks... *

(optional) {array} the tracks associated with this movie

Return:

*

public static mp3(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static mp4a(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static mvex(tracks: *): * source

Params:

NameTypeAttributeDescription
tracks *

Return:

*

public static mvhd(timescale: *, duration: *): * source

Params:

NameTypeAttributeDescription
timescale *
duration *

Return:

*

public static sdtp(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static stbl(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static stsd(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static tkhd(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static traf(track: *, baseMediaDecodeTime: *): * source

Params:

NameTypeAttributeDescription
track *
baseMediaDecodeTime *

Return:

*

public static trak(track: *): Uint8Array source

Generate a track box.

Params:

NameTypeAttributeDescription
track *

{object} a track definition

Return:

Uint8Array

the track box

public static trex(track: *): * source

Params:

NameTypeAttributeDescription
track *

Return:

*

public static trun(track: *, offset: *): * source

Params:

NameTypeAttributeDescription
track *
offset *

Return:

*