<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemSegment",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVPlayerItemSegment"
  },
  "title" : "AVPlayerItemSegment"
}
-->

# AVPlayerItemSegment

An immutable object that represents a segment of time on the integrated timeline.

```
class AVPlayerItemSegment
```

## Topics

### Identifying the type

[`segmentType`](/documentation/AVFoundation/AVPlayerItemSegment/segmentType-swift.property)

The type content this segment represents.

[`AVPlayerItemSegment.SegmentType`](/documentation/AVFoundation/AVPlayerItemSegment/SegmentType-swift.enum)

Constants that specify the type of segment.

### Inspecting the segment

[`timeMapping`](/documentation/AVFoundation/AVPlayerItemSegment/timeMapping)

The time mapping for this segment.

[`loadedTimeRanges`](/documentation/AVFoundation/AVPlayerItemSegment/loadedTimeRanges-879hc)

The time ranges for the segment that have media data is readily available.

[`loadedTimeRanges`](/documentation/AVFoundation/AVPlayerItemSegment/loadedTimeRanges-2p0fl)

The time ranges for the segment that have media data is readily available.

[`startDate`](/documentation/AVFoundation/AVPlayerItemSegment/startDate)

The date at which a segment starts.

[`interstitialEvent`](/documentation/AVFoundation/AVPlayerItemSegment/interstitialEvent)

The associated interstitial event for this segment.



---

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)