Class

AVContentProposal

An object that describes the content proposed to follow the current item.

Declaration

@interface AVContentProposal : NSObject

Overview

An AVContentProposal object models the data about the proposed content such as its title, preview image, presentation time, and content URL. A content proposal becomes eligible to be presented when set as the nextContentProposal of the current AVPlayerItem.

AVContentProposal *proposal =
    [[AVContentProposal alloc] initWithContentTimeForTransition:time
                                                          title:title
                                                   previewImage:image];
// Set the proposal as the nextContentProposal of the current player item
self.currentPlayerItem.nextContentProposal = proposal;

Topics

Creating a Content Proposal

- initWithContentTimeForTransition:title:previewImage:

Creates a new instance of AVContentProposal with the specified transition time, title, and preview image.

Configuring the Content Proposal

contentTimeForTransition

The time within the timeline of the current player item when the content proposal presentation should begin.

title

The title of the proposed content.

previewImage

The preview image of the proposed item.

metadata

Optional custom metadata associated with the proposed item.

automaticAcceptanceInterval

The interval between the time playback ends, and automatic acceptance of this content proposal.

URL

The URL for the proposed content.

Relationships

Inherits From

Conforms To

See Also

Up Next Content

Presenting Content Proposals (tvOS)

Display a preview of an upcoming media item at the conclusion of the currently playing media item.

AVContentProposalViewController

A view controller used to create custom content proposal presentations.