---
title: "boundaryTimes(for:offsetsIntoSegment:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritemintegratedtimeline/boundarytimes(for:offsetsintosegment:)"
---

# boundaryTimes(for:offsetsIntoSegment:)

Returns an asynchronous sequence of times whenever playback reaches a segment time in the segment.

## Declaration

```swift
func boundaryTimes(for segment: AVPlayerItemSegment, offsetsIntoSegment: [CMTime]) -> AVPlayerItemIntegratedTimeline.BoundaryTimes
```

## See Also

### Observing time changes

- [periodicTimes(forInterval:)](avfoundation/avplayeritemintegratedtimeline/periodictimes(forinterval:).md)
- [AVPlayerItemIntegratedTimeline.BoundaryTimes](avfoundation/avplayeritemintegratedtimeline/boundarytimes.md)
- [AVPlayerItemIntegratedTimeline.PeriodicTimes](avfoundation/avplayeritemintegratedtimeline/periodictimes.md)
- [AVPlayerItemIntegratedTimelineObserver](avfoundation/avplayeritemintegratedtimelineobserver.md)
