Instance Property

playbackProgress

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

Declaration

var playbackProgress: Float { get set }

Discussion

This property uses the values from 0.0 to 1.0. The value 0.0 indicates that the media item has not been viewed, while 1.0 indicates that the media item has been completely played. This property’s default, –1.0 indicates that no progress indicator is shown. The progress indicator is shown automatically if the playbackProgress property has a valid value and the app responds affirmatively to the childItemsDisplayPlaybackProgress(at:) method.

See Also

Retrieving Information About a Media Item

var artwork: MPMediaItemArtwork?

A single image that is associated with the media item.

var isContainer: Bool

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

var isExplicitContent: Bool

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

var identifier: String

The unique identifier for the media item.

var isPlayable: Bool

Determines if a media item is able to be played.

var isStreamingContent: Bool

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

var subtitle: String?

A secondary designator for the media item.

var title: String?

The public name of the media item.