protected static interface BinarySearchSeeker.TimestampSeeker
Modifier and Type | Method and Description |
---|---|
default void |
onSeekFinished()
Called when a seek operation finishes.
|
BinarySearchSeeker.TimestampSearchResult |
searchForTimestamp(ExtractorInput input,
long targetTimestamp,
BinarySearchSeeker.OutputFrameHolder outputFrameHolder)
Searches a limited window of the provided input for a target timestamp.
|
BinarySearchSeeker.TimestampSearchResult searchForTimestamp(ExtractorInput input, long targetTimestamp, BinarySearchSeeker.OutputFrameHolder outputFrameHolder) throws IOException, InterruptedException
input
- The ExtractorInput
from which data should be peeked.targetTimestamp
- The target timestamp.outputFrameHolder
- If BinarySearchSeeker.TimestampSearchResult.TYPE_TARGET_TIMESTAMP_FOUND
is
returned, this holder may be updated to hold the extracted frame that contains the target
frame/sample associated with the target timestamp.BinarySearchSeeker.TimestampSearchResult
that describes the result of the search.IOException
- If an error occurred reading from the input.InterruptedException
- If the thread was interrupted.default void onSeekFinished()