public interface SeekableDemuxerTrack extends DemuxerTrack
Modifier and Type | Method and Description |
---|---|
long |
getCurFrame()
Gets an index of the frame that the next call to 'nextFrame' will return,
zero based.
|
boolean |
gotoFrame(long frameNo)
Goes to exactly frameNo.
|
boolean |
gotoSyncFrame(long frameNo)
Goes to a a frame that's a sync frame (key frame) and is prior or at
frame frameNo.
|
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.
|
getMeta, nextFrame
boolean gotoFrame(long frameNo) throws IOException
frameNo
- Frame number, zero based, to go to.IOException
boolean gotoSyncFrame(long frameNo) throws IOException
frameNo
- Frame number, zero based, related to which a sync frame will
be selected.IOException
long getCurFrame()
void seek(double second) throws IOException
second
- A second to seek to.IOException
Copyright © 2019. All rights reserved.