protected interface

BinarySearchSeeker.TimestampSeeker

 androidx.media3.extractor.BinarySearchSeeker.TimestampSeeker

Overview

A seeker that looks for a given timestamp from an input.

Summary

Methods
public voidonSeekFinished()

Called when a seek operation finishes.

public BinarySearchSeeker.TimestampSearchResultsearchForTimestamp(ExtractorInput input, long targetTimestamp)

Searches a limited window of the provided input for a target timestamp.

Methods

public BinarySearchSeeker.TimestampSearchResult searchForTimestamp(ExtractorInput input, long targetTimestamp)

Searches a limited window of the provided input for a target timestamp. The size of the window is implementation specific, but should be small enough such that it's reasonable for multiple such reads to occur during a seek operation.

Parameters:

input: The ExtractorInput from which data should be peeked.
targetTimestamp: The target timestamp.

Returns:

A BinarySearchSeeker.TimestampSearchResult that describes the result of the search.

public void onSeekFinished()

Called when a seek operation finishes.