public class

BinarySearchSeeker.BinarySearchSeekMap

extends java.lang.Object

implements SeekMap

 java.lang.Object

↳androidx.media3.extractor.BinarySearchSeeker.BinarySearchSeekMap

Overview

A SeekMap implementation that returns the estimated byte location from BinarySearchSeeker.SeekOperationParams.calculateNextSearchBytePosition(long, long, long, long, long, long) for each BinarySearchSeeker.BinarySearchSeekMap.getSeekPoints(long) query.

Summary

Constructors
publicBinarySearchSeekMap(BinarySearchSeeker.SeekTimestampConverter seekTimestampConverter, long durationUs, long floorTimePosition, long ceilingTimePosition, long floorBytePosition, long ceilingBytePosition, long approxBytesPerFrame)

Constructs a new instance of this seek map.

Methods
public longgetDurationUs()

public SeekMap.SeekPointsgetSeekPoints(long timeUs)

public booleanisSeekable()

public longtimeUsToTargetTime(long timeUs)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public BinarySearchSeekMap(BinarySearchSeeker.SeekTimestampConverter seekTimestampConverter, long durationUs, long floorTimePosition, long ceilingTimePosition, long floorBytePosition, long ceilingBytePosition, long approxBytesPerFrame)

Constructs a new instance of this seek map.

Methods

public boolean isSeekable()

public SeekMap.SeekPoints getSeekPoints(long timeUs)

public long getDurationUs()

public long timeUsToTargetTime(long timeUs)

See also: BinarySearchSeeker.SeekTimestampConverter.timeUsToTargetTime(long)