Class

TVMediaItem

A single audio or video item associated with the Apple TV JavaScript player.

Declaration

@interface TVMediaItem : NSObject

Overview

A TVMediaItem object contains read-only information about a media item associated with the JavaScript player. You can use this information with your own custom AVPlayer objects exposed through a TVPlayer object. For example, you can retrieve audio track information from the JavaScript player and play the track through a TVPlayer object.

Topics

Rating Media Content

containsExplicitContent

A Boolean value indicating whether the item contains adult-oriented content.

contentRatingDomain

The media domain that the rating applies to.

TVMediaItemContentRatingDomain

A value identifying the media's content rating domain.

contentRatingRanking

The rating for a video item.

Identifying Media Items

artworkImageURL

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

itemDescription

The description for a media item.

subtitle

The subtitle for a media item.

title

The title for a media item.

type

The type of media item.

TVMediaItemType

A value indicating whether the media is audio or video.

url

The URL path to the media item.

userInfo

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

Setting Timing Options

highlightGroups

An array containing groups of individual highlights in a media item.

TVHighlightGroup

A container for groups of highlights for a media item.

interstitials

An array of time intervals that indicate where to insert media items into another, single media item.

TVTimeRange

An object that defines a time range in a media item.

resumeTime

The number of seconds from the beginning of a media item to the point where that media item begins playing.

Relationships

Inherits From

See Also

Custom Player

TVPlaylist

A collection of media items associated with the Apple TV JavaScript player.

TVPlayer

A customizable native media player used to control playback from the JavaScript player used in an Apple TV client-server app.