Class

MPContentItem

An object containing the information for a particular media item that is displayed to the user.

Declaration

@interface MPContentItem : NSObject

Overview

An MPContentItem object can represent any media item—for example, a song, movie, radio station, or podcast episode. The information stored in an MPContentItem is consumed by the media player and displayed to the user.

Update an MPContentItem object by changing its properties during runtime or by creating a new MPContentItem object with new property values, but with the same identifier as the MPContentItem object to be changed. Use the beginUpdates and endUpdates methods found in MPPlayableContentManager to update several MPContentItem objects at once.

Topics

Setting a Unique Identifier

- initWithIdentifier:

Sets the identifier for a media item.

Retrieving Information About a Media Item

artwork

A single image that is associated with the media item.

container

A Boolean value that indicates whether a media item is container of other items.

explicitContent

A Boolean value that indicates whether the media item contains explicit content.

identifier

The unique identifier for the media item.

playable

Determines if a media item is able to be played.

streamingContent

A Boolean value indicating whether the content item is streaming content.

playbackProgress

The amount of content that has been played for the media item.

subtitle

A secondary designator for the media item.

title

The public name of the media item.

Relationships

Inherits From

See Also

External Media Player Items

MPPlayableContentManager

A shared content manager used to control interactions between your media app and system-provided or external media player interfaces.

MPPlayableContentManagerContext

An object representing the current state of the playable endpoint.