|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.red5.io.mp4.MP4Frame
public class MP4Frame
Represents an MP4 frame / chunk sample
Constructor Summary | |
---|---|
MP4Frame()
|
Method Summary | |
---|---|
int |
compareTo(MP4Frame that)
The frames are expected to be sorted by their timestamp |
boolean |
equals(Object obj)
|
long |
getOffset()
Returns the offset of the data chunk in the media source. |
int |
getSize()
Returns the size of the data chunk. |
double |
getTime()
Returns the timestamp. |
int |
getTimeOffset()
|
byte |
getType()
Returns the data type, being audio or video. |
int |
hashCode()
|
boolean |
isKeyFrame()
Returns whether or not this chunk represents a key frame. |
void |
setKeyFrame(boolean keyFrame)
|
void |
setOffset(long offset)
|
void |
setSize(int size)
|
void |
setTime(double time)
|
void |
setTimeOffset(int timeOffset)
|
void |
setType(byte type)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MP4Frame()
Method Detail |
---|
public byte getType()
public void setType(byte type)
public long getOffset()
public void setOffset(long offset)
public int getSize()
public void setSize(int size)
public double getTime()
public void setTime(double time)
public int getTimeOffset()
public void setTimeOffset(int timeOffset)
timeOffset
- the timeOffset to setpublic boolean isKeyFrame()
public void setKeyFrame(boolean keyFrame)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public int compareTo(MP4Frame that)
compareTo
in interface Comparable<MP4Frame>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |