# BinarySearchSeeker.SeekOperationParams

# BinarySearchSeeker.SeekOperationParams

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

*** ** * ** ***

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

<br />

```
protected class BinarySearchSeeker.SeekOperationParams
```

<br />

*** ** * ** ***

Contains parameters for a pending seek operation by[BinarySearchSeeker](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker).

This class holds parameters for a binary-search for the`targetTimePosition`in the range \[floorPosition, ceilingPosition).

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                             ### Protected constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SeekOperationParams](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker.SeekOperationParams#SeekOperationParams(long,long,long,long,long,long,long))`(` ` seekTimeUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` targetTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` floorTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` ceilingTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` floorBytePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` ceilingBytePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` approxBytesPerFrame: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` |

|                                   ### Protected functions                                   |
|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | [calculateNextSearchBytePosition](https://developer.android.com/reference/kotlin/androidx/media3/extractor/BinarySearchSeeker.SeekOperationParams#calculateNextSearchBytePosition(long,long,long,long,long,long))`(` ` targetTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` floorTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` ceilingTimePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` floorBytePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` ceilingBytePosition: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` approxBytesPerFrame: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` Returns the next position in the stream to search for target frame, given \[floorBytePosition, ceilingBytePosition), with corresponding \[floorTimePosition, ceilingTimePosition). |

## Protected constructors

### SeekOperationParams

```
protected SeekOperationParams(
    seekTimeUs: Long,
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
)
```  

## Protected functions

### calculateNextSearchBytePosition

```
protected java-static fun calculateNextSearchBytePosition(
    targetTimePosition: Long,
    floorTimePosition: Long,
    ceilingTimePosition: Long,
    floorBytePosition: Long,
    ceilingBytePosition: Long,
    approxBytesPerFrame: Long
): Long
```

Returns the next position in the stream to search for target frame, given \[floorBytePosition, ceilingBytePosition), with corresponding \[floorTimePosition, ceilingTimePosition).