# BinarySearchSeeker.DefaultSeekTimestampConverter

# BinarySearchSeeker.DefaultSeekTimestampConverter

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.DefaultSeekTimestampConverter)

*** ** * ** ***

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

<br />

```
class BinarySearchSeeker.DefaultSeekTimestampConverter : BinarySearchSeeker.SeekTimestampConverter
```

<br />

*** ** * ** ***

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.

## Summary

|                                                                                    ### Public constructors                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DefaultSeekTimestampConverter](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker.DefaultSeekTimestampConverter#DefaultSeekTimestampConverter())`()` |

|                             ### 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.DefaultSeekTimestampConverter#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 constructors

### DefaultSeekTimestampConverter

```
DefaultSeekTimestampConverter()
```  

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