# BinarySearchSeeker.SeekTimestampConverter

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.SeekTimestampConverter "View this page in Java")

<br />

```
protected interface BinarySearchSeeker.SeekTimestampConverter
```

<br />

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

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BinarySearchSeeker.DefaultSeekTimestampConverter](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker.DefaultSeekTimestampConverter) | A[SeekTimestampConverter](https://developer.android.com/reference/kotlin/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[BinarySearchSeeker](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker).

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [timeUsToTargetTime](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker.SeekTimestampConverter#timeUsToTargetTime(long))`(timeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Converts a seek time in microseconds into target timestamp for the[BinarySearchSeeker](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker). |

## Public functions

### timeUsToTargetTime

```
fun timeUsToTargetTime(timeUs: Long): Long
```

Converts a seek time in microseconds into target timestamp for the[BinarySearchSeeker](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker).