# BinarySearchSeeker.SeekTimestampConverter

Artifact: [androidx.media3:media3-extractor](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/extractor/BinarySearchSeeker.java+class:androidx.media3.extractor.BinarySearchSeeker.SeekTimestampConverter)

*** ** * ** ***


```
protected interface BinarySearchSeeker.SeekTimestampConverter
```

<br />

Known direct subclasses [BinarySearchSeeker.DefaultSeekTimestampConverter](https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.DefaultSeekTimestampConverter)

|---|---|
| `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.DefaultSeekTimestampConverter` | A `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.SeekTimestampConverter` implementation that returns the seek time itself as the timestamp for a seek time position. |

*** ** * ** ***

A converter that converts seek time in stream time into target timestamp for the `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker`.

## Summary

| ### Public methods |
|---|---|
| `abstract long` | `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.SeekTimestampConverter#timeUsToTargetTime(long)(long timeUs)` Converts a seek time in microseconds into target timestamp for the `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker`. |

## Public methods

### timeUsToTargetTime

```
abstract long timeUsToTargetTime(long timeUs)
```

Converts a seek time in microseconds into target timestamp for the `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker`.