Class BinarySearchSeeker.DefaultSeekTimestampConverter
- java.lang.Object
-
- com.google.android.exoplayer2.extractor.BinarySearchSeeker.DefaultSeekTimestampConverter
-
- All Implemented Interfaces:
BinarySearchSeeker.SeekTimestampConverter
- Enclosing class:
- BinarySearchSeeker
public static final class BinarySearchSeeker.DefaultSeekTimestampConverter extends Object implements BinarySearchSeeker.SeekTimestampConverter
ABinarySearchSeeker.SeekTimestampConverterimplementation that returns the seek time itself as the timestamp for a seek time position.
-
-
Constructor Summary
Constructors Constructor Description DefaultSeekTimestampConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longtimeUsToTargetTime(long timeUs)Converts a seek time in microseconds into target timestamp for theBinarySearchSeeker.
-
-
-
Method Detail
-
timeUsToTargetTime
public long timeUsToTargetTime(long timeUs)
Description copied from interface:BinarySearchSeeker.SeekTimestampConverterConverts a seek time in microseconds into target timestamp for theBinarySearchSeeker.- Specified by:
timeUsToTargetTimein interfaceBinarySearchSeeker.SeekTimestampConverter
-
-