org.mobicents.media.server.impl.resource.mediaplayer.mpeg
Class ChunkOffsetBox
java.lang.Object
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.FullBox
org.mobicents.media.server.impl.resource.mediaplayer.mpeg.ChunkOffsetBox
public class ChunkOffsetBox
- extends FullBox
8.7.5.1 Definition
Box Type: �?stco’, �?co64’
- Container: Sample Table Box (�?stbl’)
- Mandatory: Yes
- Quantity: Exactly one variant must be present
The chunk offset table gives the index of each chunk into the containing file. There are two variants, permitting the
use of 32-bit or 64-bit offsets. The latter is useful when managing very large presentations. At most one of these
variants will occur in any single instance of a sample table.
Offsets are file offsets, not the offset into any box within the file (e.g. Media Data Box). This permits referring
to media data in files without any box structure. It does also mean that care must be taken when constructing a
self-contained ISO file with its metadata (Movie Box) at the front, as the size of the Movie Box will affect the
chunk offsets to the media data.
- Author:
- amit bhayani
| Fields inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.Box |
bytetoTypeMap |
|
Method Summary |
long[] |
getChunkOffset()
|
protected int |
load(java.io.DataInputStream fin)
Loads Box from stream. |
| Methods inherited from class org.mobicents.media.server.impl.resource.mediaplayer.mpeg.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 |
ChunkOffsetBox
public ChunkOffsetBox(long size)
load
protected int load(java.io.DataInputStream fin)
throws java.io.IOException
- Description copied from class:
Box
- Loads Box from stream.
- Overrides:
load in class FullBox
- 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.
getChunkOffset
public long[] getChunkOffset()
Copyright © 2010. All Rights Reserved.