<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemSampleBufferOutput/SampleBufferInSequence",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So30AVPlayerItemSampleBufferOutputC12AVFoundationE0cD10InSequenceV"
  },
  "title" : "AVPlayerItemSampleBufferOutput.SampleBufferInSequence"
}
-->

# AVPlayerItemSampleBufferOutput.SampleBufferInSequence

Holds the information necessary for processing generated sample buffers.

```
struct SampleBufferInSequence
```

## Topics

### Initializers

[`init(sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>, sequenceWasRestarted: Bool)`](/documentation/AVFoundation/AVPlayerItemSampleBufferOutput/SampleBufferInSequence/init(sampleBuffer:sequenceWasRestarted:))

### Instance Properties

[`var sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>`](/documentation/AVFoundation/AVPlayerItemSampleBufferOutput/SampleBufferInSequence/sampleBuffer)

Sample buffer containing media data.

[`var sequenceWasRestarted: Bool`](/documentation/AVFoundation/AVPlayerItemSampleBufferOutput/SampleBufferInSequence/sequenceWasRestarted)

Indicates the very first buffer in a new sequence produced by this output. Seeking or changing playback
direction will start a new sequence of buffers. If you have any sample buffers queued from the previous
sequence, these should be discarded.

## Relationships

### Conforms To

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

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

---

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)