public class Mp4HdlrBox extends AbstractMp4Box
Modifier and Type | Class and Description |
---|---|
static class |
Mp4HdlrBox.MediaDataType |
Modifier and Type | Field and Description |
---|---|
static int |
HANDLER_LENGTH |
static int |
HANDLER_POS |
static int |
ITUNES_META_HDLR_DAT_LENGTH |
static int |
NAME_LENGTH |
static int |
OTHER_FLAG_LENGTH |
static int |
RESERVED_FLAG_LENGTH |
static int |
RESERVED1_LENGTH |
static int |
RESERVED1_POS |
static int |
RESERVED2_LENGTH |
static int |
RESERVED3_LENGTH |
static int |
VERSION_FLAG_LENGTH |
dataBuffer, header
Constructor and Description |
---|
Mp4HdlrBox(Mp4BoxHeader header,
ByteBuffer dataBuffer)
DataBuffer must start from from the start of the body
|
Modifier and Type | Method and Description |
---|---|
static Mp4HdlrBox |
createiTunesStyleHdlrBox()
Create an iTunes style Hdlr box for use within Meta box
|
String |
getHandlerType() |
Mp4HdlrBox.MediaDataType |
getMediaDataType() |
void |
processData() |
String |
toString() |
getData, getHeader
public static final int VERSION_FLAG_LENGTH
public static final int OTHER_FLAG_LENGTH
public static final int RESERVED_FLAG_LENGTH
public static final int HANDLER_LENGTH
public static final int RESERVED1_LENGTH
public static final int RESERVED2_LENGTH
public static final int RESERVED3_LENGTH
public static final int NAME_LENGTH
public static final int HANDLER_POS
public static final int RESERVED1_POS
public static final int ITUNES_META_HDLR_DAT_LENGTH
public Mp4HdlrBox(Mp4BoxHeader header, ByteBuffer dataBuffer)
header
- header infodataBuffer
- data of box (doesnt include header data)public void processData() throws CannotReadException
CannotReadException
public String getHandlerType()
public Mp4HdlrBox.MediaDataType getMediaDataType()
public static Mp4HdlrBox createiTunesStyleHdlrBox()
Useful when writing to mp4 that previously didn't contain an mp4 meta atom
Doesnt write the child data but uses it to set the header length, only sets the atoms immediate data
Copyright © 2005–2020 jthink.net. All rights reserved.