Class

AVInterstitialTimeRange

A time range in an audiovisual presentation as interstitial content, such as advertisements or legal notices.

Declaration

@interface AVInterstitialTimeRange : NSObject

Overview

When you associate interstitial time ranges with an AVPlayerItem you present with an AVPlayerViewController, you can customize or restrict the presentation of interstitial content. For example, you can allow the user to skip advertisements or prohibit skipping of a legal notice.

Topics

Creating an Interstitial Time Range

- initWithTimeRange:

Initializes an interstitial time range object with the specified time range.

Inspecting an Interstitial Time Range

timeRange

The time range identified as interstitial content.

Relationships

Inherits From

See Also

Media Playback

Adopting Picture in Picture in a Standard Player

Add picture-in-picture controls to your player using a player view controller.

Adopting Picture in Picture in a Custom Player

Add picture-in-picture controls to your custom player using a picture-in-picture controller.

Working with Interstitial Content (tvOS)

Present additional content such as legal text, content warnings, or advertisements alongside your main media content.

Adding Information to the Info Panel (tvOS)

Add metadata information and navigation markers to the Info panel in Apple TV.

Adopting Custom Interactive Overlays, Channel Flipping, and Parental Controls in tvOS Video Playback

This sample demonstrates support for custom interactive overlays, and parental controls, using AVPlayerViewController.

AVPlayerViewController

An object that displays the video content from a player object along with system-supplied playback controls.

AVPlayerView

A macOS-only object that displays the video content from a player object along with system-supplied playback controls.

AVPictureInPictureController

A controller that responds to user-initiated playback of video in a floating, resizable window on iPad.

AVRoutePickerView

An object that displays controls for picking playback routes.

AVNavigationMarkersGroup

A set of markers for navigating playback of an audiovisual presentation.