---
title: MPAdTimeRange
framework: mediaplayer
role: symbol
role_heading: Class
path: mediaplayer/mpadtimerange
---

# MPAdTimeRange

An object that represents a time range where an ad break exists in the current player.

## Declaration

```swift
class MPAdTimeRange
```

## Overview

Overview This value must be in bounds of the duration of the current player item.

## Topics

### Creating an Ad Time Range

- [init(_:)](mediaplayer/mpadtimerange/init(_:).md)

### Inspecting an Ad Time Range

- [timeRange](mediaplayer/mpadtimerange/timerange.md)

### Initializers

- [init(timeRange:)](mediaplayer/mpadtimerange/init(timerange:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
