|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.io.flv.FLVHeader
public class FLVHeader
FLVHeader parses out the contents of a FLV video file and returns the Header data
Field Summary | |
---|---|
int |
dataOffset
reserved for data up to 4,294,967,295 |
boolean |
flagAudio
Audio flag |
static byte |
flagReserved01
Reserved flag, one |
static byte |
flagReserved02
Reserved flag, two |
boolean |
flagVideo
Video flag |
static byte[] |
signature
Signature |
static byte |
version
FLV version |
Constructor Summary | |
---|---|
FLVHeader()
|
Method Summary | |
---|---|
int |
getDataOffset()
Returns the data offset bytes |
boolean |
getFlagAudio()
Returns a boolean on whether this data contains audio |
byte |
getFlagReserved01()
Gets the FlagReserved01 which is a datatype specified in the Flash Specification |
byte |
getFlagReserved02()
Gets the FlagReserved02 which is a datatype specified in the Flash Specification |
boolean |
getFlagVideo()
Returns a boolean on whether this data contains video |
byte[] |
getSignature()
Returns the signature bytes |
byte |
getVersion()
Gets the version byte |
void |
setDataOffset(int data_offset)
Sets the data offset bytes |
void |
setFlagAudio(boolean flagAudio)
Sets the audioflag on whether this data contains audio |
void |
setFlagReserved01(byte flagReserved01)
Sets the FlagReserved01 which is a datatype specified in the Flash Specification |
void |
setFlagReserved02(byte flagReserved02)
Sets the Flag Reserved02 which is a datatype specified in the Flash Specification |
void |
setFlagVideo(boolean type_flags_video)
Sets the audioflag on whether this data contains audio |
void |
setTypeFlags(byte typeFlags)
Sets the type flags on whether this data is audio or video |
String |
toString()
Overrides the toString method so that a FLVHeader can be represented by its datatypes |
void |
write(ByteBuffer buffer)
|
void |
write(IoBuffer buffer)
Writes the FLVHeader to IoBuffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte[] signature
public static final byte version
public static byte flagReserved01
public boolean flagAudio
public static byte flagReserved02
public boolean flagVideo
public int dataOffset
Constructor Detail |
---|
public FLVHeader()
Method Detail |
---|
public int getDataOffset()
public void setDataOffset(int data_offset)
data_offset
- Data offsetpublic byte[] getSignature()
public String toString()
toString
in class Object
public boolean getFlagAudio()
true
if this FLV header contains audio data, false
otherwisepublic void setFlagAudio(boolean flagAudio)
flagAudio
- true
if this FLV header contains audio data, false
otherwisepublic void setTypeFlags(byte typeFlags)
typeFlags
- Type flags determining data types (audio or video)public byte getFlagReserved01()
public void setFlagReserved01(byte flagReserved01)
flagReserved01
- Flag reserved, firstpublic byte getFlagReserved02()
public void setFlagReserved02(byte flagReserved02)
flagReserved02
- FlagReserved02public boolean getFlagVideo()
true
if this FLV header contains vide data, false
otherwisepublic void setFlagVideo(boolean type_flags_video)
type_flags_video
- true
if this FLV header contains video data, false
otherwisepublic byte getVersion()
public void write(IoBuffer buffer)
buffer
- IoBuffer to writepublic void write(ByteBuffer buffer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |