Mp4Box.ContainerBox


class Mp4Box.ContainerBox : Mp4Box


An MP4 box that has child boxes.

Summary

Public constructors

ContainerBox(type: Int, endPosition: Long)

Public functions

Unit

Adds a child container to this container.

Unit

Adds a child leaf to this container.

Mp4Box.ContainerBox?

Returns the child container of the given type.

Mp4Box.LeafBox?

Returns the child leaf of the given type.

String!

Inherited Constants

From androidx.media3.container.Mp4Box
const Int

Value for the size field in a box that defines its size in the largesize field.

const Int

Value for the size field in a box that extends to the end of the file.

const Int

Size of a full box header, in bytes.

const Int

Size of a box header, in bytes.

const Int

Size of a long box header, in bytes.

const Int
TYPE_H263 = 1211250227
const Int
TYPE_Opus = 1332770163
const Int
TYPE_TTML = 1414810956
const Int
TYPE__mp2 = 778924082
const Int
TYPE__mp3 = 778924083
const Int
TYPE_ac_3 = 1633889587
const Int
TYPE_ac_4 = 1633889588
const Int
TYPE_alac = 1634492771
const Int
TYPE_alaw = 1634492791
const Int
TYPE_av01 = 1635135537
const Int
TYPE_av1C = 1635135811
const Int
TYPE_avc1 = 1635148593
const Int
TYPE_avc3 = 1635148595
const Int
TYPE_avcC = 1635148611
const Int
TYPE_c608 = 1664495672
const Int
TYPE_camm = 1667329389
const Int
TYPE_clli = 1668050025
const Int
TYPE_co64 = 1668232756
const Int
TYPE_colr = 1668246642
const Int
TYPE_ctts = 1668576371
const Int
TYPE_d263 = 1681012275
const Int
TYPE_dOps = 1682927731
const Int
TYPE_dac3 = 1684103987
const Int
TYPE_dac4 = 1684103988
const Int
TYPE_data = 1684108385
const Int
TYPE_ddts = 1684305011
const Int
TYPE_dec3 = 1684366131
const Int
TYPE_dfLa = 1684425825
const Int
TYPE_dmlp = 1684892784
const Int
TYPE_dtsc = 1685353315
const Int
TYPE_dtse = 1685353317
const Int
TYPE_dtsh = 1685353320
const Int
TYPE_dtsl = 1685353324
const Int
TYPE_dtsx = 1685353336
const Int
TYPE_dva1 = 1685479729
const Int
TYPE_dvav = 1685479798
const Int
TYPE_dvcC = 1685480259
const Int
TYPE_dvh1 = 1685481521
const Int
TYPE_dvhe = 1685481573
const Int
TYPE_dvvC = 1685485123
const Int
TYPE_ec_3 = 1700998451
const Int
TYPE_edts = 1701082227
const Int
TYPE_edvd = 1701082724
const Int
TYPE_elst = 1701606260
const Int
TYPE_emsg = 1701671783
const Int
TYPE_enca = 1701733217
const Int
TYPE_encv = 1701733238
const Int
TYPE_esds = 1702061171
const Int
TYPE_eyes = 1702454643
const Int
TYPE_fLaC = 1716281667
const Int
TYPE_frma = 1718775137
const Int
TYPE_ftyp = 1718909296
const Int
TYPE_h263 = 1748121139
const Int
TYPE_hdlr = 1751411826
const Int
TYPE_hev1 = 1751479857
const Int
TYPE_hvc1 = 1752589105
const Int
TYPE_hvcC = 1752589123
const Int
TYPE_iacb = 1767990114
const Int
TYPE_iamf = 1767992678
const Int
TYPE_ilst = 1768715124
const Int
TYPE_keys = 1801812339
const Int
TYPE_lhvC = 1818785347
const Int
TYPE_lpcm = 1819304813
const Int
TYPE_m1v_ = 1831958048
const Int
TYPE_mdat = 1835295092
const Int
TYPE_mdcv = 1835295606
const Int
TYPE_mdhd = 1835296868
const Int
TYPE_mdia = 1835297121
const Int
TYPE_mean = 1835360622
const Int
TYPE_mehd = 1835362404
const Int
TYPE_meta = 1835365473
const Int
TYPE_mett = 1835365492
const Int
TYPE_mha1 = 1835557169
const Int
TYPE_mhaC = 1835557187
const Int
TYPE_mhaP = 1835557200
const Int
TYPE_mhm1 = 1835560241
const Int
TYPE_minf = 1835626086
const Int
TYPE_mlpa = 1835823201
const Int
TYPE_moof = 1836019558
const Int
TYPE_moov = 1836019574
const Int
TYPE_mp4a = 1836069985
const Int
TYPE_mp4v = 1836070006
const Int
TYPE_mpvd = 1836086884
const Int
TYPE_mvex = 1836475768
const Int
TYPE_mvhd = 1836476516
const Int
TYPE_name = 1851878757
const Int
TYPE_pasp = 1885434736
const Int
TYPE_proj = 1886547818
const Int
TYPE_pssh = 1886614376
const Int
TYPE_s263 = 1932670515
const Int
TYPE_saio = 1935763823
const Int
TYPE_saiz = 1935763834
const Int
TYPE_samr = 1935764850
const Int
TYPE_saut = 1935766900
const Int
TYPE_sawb = 1935767394
const Int
TYPE_sbgp = 1935828848
const Int
TYPE_schi = 1935894633
const Int
TYPE_schm = 1935894637
const Int
TYPE_senc = 1936027235
const Int
TYPE_sgpd = 1936158820
const Int
TYPE_sidx = 1936286840
const Int
TYPE_sinf = 1936289382
const Int
TYPE_smta = 1936553057
const Int
TYPE_sowt = 1936684916
const Int
TYPE_srfr = 1936877170
const Int
TYPE_st3d = 1936995172
const Int
TYPE_stbl = 1937007212
const Int
TYPE_stco = 1937007471
const Int
TYPE_stpp = 1937010800
const Int
TYPE_stri = 1937011305
const Int
TYPE_stsc = 1937011555
const Int
TYPE_stsd = 1937011556
const Int
TYPE_stss = 1937011571
const Int
TYPE_stsz = 1937011578
const Int
TYPE_stts = 1937011827
const Int
TYPE_stz2 = 1937013298
const Int
TYPE_sv3d = 1937126244
const Int
TYPE_tenc = 1952804451
const Int
TYPE_tfdt = 1952867444
const Int
TYPE_tfhd = 1952868452
const Int
TYPE_tkhd = 1953196132
const Int
TYPE_traf = 1953653094
const Int
TYPE_trak = 1953653099
const Int
TYPE_trex = 1953654136
const Int
TYPE_trun = 1953658222
const Int
TYPE_twos = 1953984371
const Int
TYPE_tx3g = 1954034535
const Int
TYPE_udta = 1969517665
const Int
TYPE_udts = 1969517683
const Int
TYPE_ulaw = 1970037111
const Int
TYPE_uuid = 1970628964
const Int
TYPE_vexu = 1986361461
const Int
TYPE_vp08 = 1987063864
const Int
TYPE_vp09 = 1987063865
const Int
TYPE_vpcC = 1987076931
const Int
TYPE_wave = 2002876005
const Int
TYPE_wvtt = 2004251764
const Int
TYPE_xyz = -1451722374

Inherited functions

From androidx.media3.container.Mp4Box
java-static String!

Converts a numeric box type to the corresponding four character string.

Inherited properties

From androidx.media3.container.Mp4Box

Public constructors

ContainerBox

ContainerBox(type: Int, endPosition: Long)
Parameters
type: Int

The type of the box.

endPosition: Long

The position of the first byte after the end of the box.

Public functions

add

fun add(box: Mp4Box.ContainerBox!): Unit

Adds a child container to this container.

Parameters
box: Mp4Box.ContainerBox!

The child to add.

add

fun add(box: Mp4Box.LeafBox!): Unit

Adds a child leaf to this container.

Parameters
box: Mp4Box.LeafBox!

The child to add.

getContainerBoxOfType

fun getContainerBoxOfType(type: Int): Mp4Box.ContainerBox?

Returns the child container of the given type.

If no child exists with the given type then null is returned. If multiple children exist with the given type then the first one to have been added is returned.

Parameters
type: Int

The container type.

Returns
Mp4Box.ContainerBox?

The child container of the given type, or null if no such child exists.

getLeafBoxOfType

fun getLeafBoxOfType(type: Int): Mp4Box.LeafBox?

Returns the child leaf of the given type.

If no child exists with the given type then null is returned. If multiple children exist with the given type then the first one to have been added is returned.

Parameters
type: Int

The leaf type.

Returns
Mp4Box.LeafBox?

The child leaf of the given type, or null if no such child exists.

toString

fun toString(): String!

Public properties

containerChildren

val containerChildren: (Mutable)List<Mp4Box.ContainerBox!>!

endPosition

val endPositionLong

leafChildren

val leafChildren: (Mutable)List<Mp4Box.LeafBox!>!