---
title: willPlayOnce
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayerinterstitialevent/willplayonce
---

# willPlayOnce

A Boolean value that indicates whether to schedule this event one time only and suppress subsequent replay.

## Declaration

```swift
var willPlayOnce: Bool { get set }
```

## Discussion

Discussion The “once” provision takes effect at the start of interstitial playback. The system doesn’t schedule playback again even if the first playback is canceled before completion.

## See Also

### Inspecting timing

- [time](avfoundation/avplayerinterstitialevent/time.md)
- [date](avfoundation/avplayerinterstitialevent/date.md)
- [resumptionOffset](avfoundation/avplayerinterstitialevent/resumptionoffset.md)
- [playoutLimit](avfoundation/avplayerinterstitialevent/playoutlimit.md)
- [alignsStartWithPrimarySegmentBoundary](avfoundation/avplayerinterstitialevent/alignsstartwithprimarysegmentboundary.md)
- [alignsResumptionWithPrimarySegmentBoundary](avfoundation/avplayerinterstitialevent/alignsresumptionwithprimarysegmentboundary.md)
