<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MEEstimatedSampleLocation/init(byteSource:estimatedSampleLocation:refinementDataLocation:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)MEEstimatedSampleLocation(im)initWithByteSource:estimatedSampleLocation:refinementDataLocation:"
  },
  "title" : "init(byteSource:estimatedSampleLocation:refinementDataLocation:)"
}
-->

# init(byteSource:estimatedSampleLocation:refinementDataLocation:)

Creates an estimated sample location object with the byte source, sample location, and data location that you specify.

```
init(byteSource: MEByteSource, estimatedSampleLocation: AVSampleCursorStorageRange, refinementDataLocation: AVSampleCursorStorageRange)
```

## Parameters

`byteSource`

The byte source to use to read the data for the sample.

`estimatedSampleLocation`

The estimated starting file offset and size in bytes of the sample.

`refinementDataLocation`

The starting file offset and size in bytes of the data necessary to provide an accurate sample location.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)