---
title: AVPlayerInterstitialEventController
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avplayerinterstitialeventcontroller
---

# AVPlayerInterstitialEventController

An object that schedules interstitial events for items played by the primary player.

## Declaration

```swift
class AVPlayerInterstitialEventController
```

## Overview

Overview This class is a subclass of AVPlayerInterstitialEventMonitor that you use to manage the schedule of interstitial events to present during playback of primary content. important: Creating an event controller and setting a schedule causes playback to ignore interstitial events present in the source media.

## Topics

### Creating an event controller

- [init(primaryPlayer:)](avfoundation/avplayerinterstitialeventcontroller/init(primaryplayer:).md)

### Configuring the event schedule

- [events](avfoundation/avplayerinterstitialeventcontroller/events.md)
- [cancelCurrentEvent(withResumptionOffset:)](avfoundation/avplayerinterstitialeventcontroller/cancelcurrentevent(withresumptionoffset:).md)
- [skipCurrentEvent()](avfoundation/avplayerinterstitialeventcontroller/skipcurrentevent().md)

### Accessing strings

- [localizedStringsBundle](avfoundation/avplayerinterstitialeventcontroller/localizedstringsbundle.md)
- [localizedStringsTableName](avfoundation/avplayerinterstitialeventcontroller/localizedstringstablename.md)

## Relationships

### Inherits From

- [AVPlayerInterstitialEventMonitor](avfoundation/avplayerinterstitialeventmonitor.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Interstitials

- [Providing an integrated view of your timeline when playing HLS interstitials](avfoundation/providing-an-integrated-view-of-your-timeline-when-playing-hls-interstitials.md)
- [AVPlayerInterstitialEvent](avfoundation/avplayerinterstitialevent.md)
- [AVPlayerInterstitialEventMonitor](avfoundation/avplayerinterstitialeventmonitor.md)
- [AVPlayerInterstitialEventMonitorScheduleRequestErrorKey](avfoundation/avplayerinterstitialeventmonitorschedulerequesterrorkey.md)
- [AVPlayerInterstitialEventMonitorScheduleRequestIdentifierKey](avfoundation/avplayerinterstitialeventmonitorschedulerequestidentifierkey.md)
- [AVPlayerInterstitialEventMonitorScheduleRequestResponseKey](avfoundation/avplayerinterstitialeventmonitorschedulerequestresponsekey.md)
- [AVPlayerItemIntegratedTimeline](avfoundation/avplayeritemintegratedtimeline.md)
