|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
byte |
flagReserved01
Reserved flag, one |
byte |
flagReserved02
Reserved flag, two |
boolean |
flagVideo
Video flag |
byte[] |
signature
Signature |
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 |
setSignature(byte[] signature)
Sets the signature bytes |
void |
setTypeFlags(byte typeFlags)
Sets the type flags on whether this data is audio or video |
void |
setVersion(byte version)
Sets the version byte |
String |
toString()
Overrides the toString method so that a FLVHeader can be represented by its datatypes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte[] signature
public byte version
public byte flagReserved01
public boolean flagAudio
public 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 Objectpublic void setSignature(byte[] signature)
signature - Signaturepublic 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 setVersion(byte version)
version - FLV version byte
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||