A value indicating whether the media is audio or video.


struct MediaType


Media Types

static let audio: TVMediaItem.MediaType

The media item is audio only.

static let video: TVMediaItem.MediaType

The media item incorporates video.


See Also

Identifying Media Items

var artworkImageURL: URL?

The URL path to the artwork that accompanies the media item.

var itemDescription: String?

The description for a media item.

var subtitle: String?

The subtitle for a media item.

var title: String?

The title for a media item.

var type: TVMediaItem.MediaType?

The type of media item.

var url: URL?

The URL path to the media item.

var userInfo: [String : Any]

User-defined metadata, like a developer-specific identifier, for a media item.