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

*** ** * ** ***


```
protected class BinarySearchSeeker.SeekOperationParams
```

<br />

*** ** * ** ***

Contains parameters for a pending seek operation by `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker`.

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

## Summary

| ### Protected constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.SeekOperationParams#SeekOperationParams(long,long,long,long,long,long,long)( long seekTimeUs, long targetTimePosition, long floorTimePosition, long ceilingTimePosition, long floorBytePosition, long ceilingBytePosition, long approxBytesPerFrame )` |

| ### Protected methods |
|---|---|
| `static long` | `https://developer.android.com/reference/androidx/media3/extractor/BinarySearchSeeker.SeekOperationParams#calculateNextSearchBytePosition(long,long,long,long,long,long)( long targetTimePosition, long floorTimePosition, long ceilingTimePosition, long floorBytePosition, long ceilingBytePosition, long approxBytesPerFrame )` Returns the next position in the stream to search for target frame, given \[floorBytePosition, ceilingBytePosition), with corresponding \[floorTimePosition, ceilingTimePosition). |

## Protected constructors

### SeekOperationParams

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

## Protected methods

### calculateNextSearchBytePosition

```
protected static long calculateNextSearchBytePosition(
    long targetTimePosition,
    long floorTimePosition,
    long ceilingTimePosition,
    long floorBytePosition,
    long ceilingBytePosition,
    long approxBytesPerFrame
)
```

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