<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaExtension",
  "identifier" : "/documentation/MediaExtension/MESampleLocation",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MediaExtension"
    ],
    "preciseIdentifier" : "c:objc(cs)MESampleLocation"
  },
  "title" : "MESampleLocation"
}
-->

# MESampleLocation

An object that provides information about the sample location with the media.

```
class MESampleLocation
```

## Topics

### Creating a sample location

[`-  initWithByteSource:sampleLocation:`](/documentation/MediaExtension/MESampleLocation/init(byteSource:sampleLocation:))

Creates a sample location object with the byte source and sample location that you specify.

### Inspecting a sample location

[`byteSource`](/documentation/MediaExtension/MESampleLocation/byteSource)

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

[`sampleLocation`](/documentation/MediaExtension/MESampleLocation/sampleLocation)

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

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Sendable`](/documentation/Swift/Sendable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)