org.mobicents.media.server.impl.resource.video
Class MediaDataBox
java.lang.Object
org.mobicents.media.server.impl.resource.video.Box
org.mobicents.media.server.impl.resource.video.MediaDataBox
public class MediaDataBox
- extends Box
8.1.1.1 Definition
- Box Type: ‘mdat’
- Container: File
- Mandatory: No
- Quantity: Any number
This box contains the media data. In video tracks, this box would contain video frames. A presentation may contain
zero or more Media Data Boxes. The actual media data follows the type field; its structure is described by the
metadata (see particularly the SampleTableBox, subclause 8.5, and the item location box, subclause 8.11.3).
In large presentations, it may be desirable to have more data in this box than a 32-bit size would permit. In this
case, the large variant of the size field, above in subclause 6.2, is used.
There may be any number of these boxes in the file (including zero, if all the media data is in other files). The
metadata refers to media data by its absolute offset within the file (see subclause 8.7.5, the Chunk Offset Box); so
Media Data Box headers and free space may easily be skipped, and files without any box structure may also be
referenced and used.
- Author:
- amit bhayani
| Fields inherited from class org.mobicents.media.server.impl.resource.video.Box |
bytetoTypeMap |
|
Method Summary |
protected int |
load(java.io.DataInputStream fin)
Loads Box from stream. |
| Methods inherited from class org.mobicents.media.server.impl.resource.video.Box |
comparebytes, getSize, getType, read, read16, read24, read32, readFixedPoint1616, readText, readType, readU32, readU64 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MediaDataBox
public MediaDataBox(long size)
load
protected int load(java.io.DataInputStream fin)
throws java.io.IOException
- Description copied from class:
Box
- Loads Box from stream.
- Specified by:
load in class Box
- Parameters:
fin - the stream to load box from
- Returns:
- the number of bytes readed from stream; *
- Throws:
java.io.IOException - if some I/O error occured.
Copyright © 2010. All Rights Reserved.