public static class FLVTrackDemuxer.FLVDemuxerTrack extends Object implements SeekableDemuxerTrack
| Constructor and Description |
|---|
FLVDemuxerTrack(FLVTrackDemuxer demuxer,
FLVTag.Type type) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCurFrame()
Gets an index of the frame that the next call to 'nextFrame' will return,
zero based.
|
DemuxerTrackMeta |
getMeta() |
boolean |
gotoFrame(long i)
Goes to exactly frameNo.
|
boolean |
gotoSyncFrame(long i)
Goes to a a frame that's a sync frame (key frame) and is prior or at
frame frameNo.
|
Packet |
nextFrame() |
Packet |
pickFrame() |
Packet |
prevFrame() |
void |
seek(double second)
Seeks this container to the second provided so that the next call to
nextFrame will return a frame at that second.
|
public FLVDemuxerTrack(FLVTrackDemuxer demuxer, FLVTag.Type type) throws IOException
IOExceptionpublic Packet nextFrame() throws IOException
nextFrame in interface DemuxerTrackIOExceptionpublic Packet prevFrame() throws IOException
IOExceptionpublic Packet pickFrame() throws IOException
IOExceptionpublic DemuxerTrackMeta getMeta()
getMeta in interface DemuxerTrackpublic boolean gotoFrame(long i)
throws IOException
SeekableDemuxerTrackgotoFrame in interface SeekableDemuxerTracki - Frame number, zero based, to go to.IOExceptionpublic boolean gotoSyncFrame(long i)
SeekableDemuxerTrackgotoSyncFrame in interface SeekableDemuxerTracki - Frame number, zero based, related to which a sync frame will
be selected.public long getCurFrame()
SeekableDemuxerTrackgetCurFrame in interface SeekableDemuxerTrackpublic void seek(double second)
throws IOException
SeekableDemuxerTrackseek in interface SeekableDemuxerTracksecond - A second to seek to.IOExceptionCopyright © 2019. All rights reserved.