|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.red5.io.mp3.impl.MP3Reader
public class MP3Reader
Read MP3 files
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.red5.io.flv.IKeyFrameDataAnalyzer |
---|
IKeyFrameDataAnalyzer.KeyFrameMeta |
Field Summary | |
---|---|
protected static Logger |
log
|
Constructor Summary | |
---|---|
MP3Reader(File file)
Creates reader from file input stream |
Method Summary | |
---|---|
IKeyFrameDataAnalyzer.KeyFrameMeta |
analyzeKeyFrames()
Analyze and return keyframe metadata. |
void |
close()
Closes the reader and free any allocated memory. |
void |
decodeHeader()
Decode the header of the stream; |
long |
getBytesRead()
Returns the amount of bytes read |
long |
getDuration()
Return length in seconds |
IStreamableFile |
getFile()
Return the file that is loaded. |
int |
getOffset()
Returns the offet length |
long |
getTotalBytes()
Get the total readable bytes in a file or ByteBuffer. |
boolean |
hasMoreTags()
Returns a boolean stating whether the FLV has more tags |
boolean |
hasVideo()
A MP3 stream never has video. |
void |
position(long pos)
Move the reader pointer to given position in file. |
ITag |
readTag()
Returns a Tag object |
void |
searchNextFrame()
Search for next frame sync word. |
void |
setFrameCache(IKeyFrameMetaCache frameCache)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Logger log
Constructor Detail |
---|
public MP3Reader(File file) throws IOException
file
- file input
IOException
Method Detail |
---|
public boolean hasVideo()
hasVideo
in interface ITagReader
false
public void setFrameCache(IKeyFrameMetaCache frameCache)
public void searchNextFrame()
public IStreamableFile getFile()
getFile
in interface ITagReader
public int getOffset()
getOffset
in interface ITagReader
public long getBytesRead()
getBytesRead
in interface ITagReader
public long getDuration()
getDuration
in interface ITagReader
public long getTotalBytes()
getTotalBytes
in interface ITagReader
public boolean hasMoreTags()
hasMoreTags
in interface ITagReader
public ITag readTag()
readTag
in interface ITagReader
public void close()
close
in interface ITagReader
public void decodeHeader()
decodeHeader
in interface ITagReader
public void position(long pos)
position
in interface ITagReader
pos
- File position to move topublic IKeyFrameDataAnalyzer.KeyFrameMeta analyzeKeyFrames()
analyzeKeyFrames
in interface IKeyFrameDataAnalyzer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |