Mp4Box.ContainerBox
class Mp4Box.ContainerBox : Mp4Box
An MP4 box that has child boxes.
Summary
Public constructors |
|---|
ContainerBox(type: Int, endPosition: Long) |
Public functions |
|
|---|---|
Unit |
add(box: Mp4Box.ContainerBox!)Adds a child container to this container. |
Unit |
add(box: Mp4Box.LeafBox!)Adds a child leaf to this container. |
Mp4Box.ContainerBox? |
getContainerBoxOfType(type: Int)Returns the child container of the given type. |
Mp4Box.LeafBox? |
getLeafBoxOfType(type: Int)Returns the child leaf of the given type. |
String! |
toString() |
Public properties |
|
|---|---|
(Mutable)List<Mp4Box.ContainerBox!>! |
|
Long |
|
(Mutable)List<Mp4Box.LeafBox!>! |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||
|---|---|---|
|
Public constructors
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. |