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
IOException
public Packet nextFrame() throws IOException
nextFrame
in interface DemuxerTrack
IOException
public Packet prevFrame() throws IOException
IOException
public Packet pickFrame() throws IOException
IOException
public DemuxerTrackMeta getMeta()
getMeta
in interface DemuxerTrack
public boolean gotoFrame(long i) throws IOException
SeekableDemuxerTrack
gotoFrame
in interface SeekableDemuxerTrack
i
- Frame number, zero based, to go to.IOException
public boolean gotoSyncFrame(long i)
SeekableDemuxerTrack
gotoSyncFrame
in interface SeekableDemuxerTrack
i
- Frame number, zero based, related to which a sync frame will
be selected.public long getCurFrame()
SeekableDemuxerTrack
getCurFrame
in interface SeekableDemuxerTrack
public void seek(double second) throws IOException
SeekableDemuxerTrack
seek
in interface SeekableDemuxerTrack
second
- A second to seek to.IOException
Copyright © 2019. All rights reserved.