org.red5.io.mp4
public class MP4Frame extends Object implements Comparable<MP4Frame>
Constructor and Description |
---|
MP4Frame() |
Modifier and Type | Method and Description |
---|---|
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() |
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 compareTo(MP4Frame that)
compareTo
in interface Comparable<MP4Frame>
Copyright © 2006-2012 The Red5 Project