Class

TVPlaylist

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

Declaration

@interface TVPlaylist : NSObject

Overview

A TVPlaylist object contains read-only information about a playlist 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 album information from the JavaScript player and play the track through a TVPlayer object.

Topics

Retrieving Playlist Information

mediaItems

An array of media items contained in the playlist.

userInfo

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

repeatMode

A mode that determines how media items are replayed.

TVPlaylistRepeatMode

The modes that indicate how or whether media items can be replayed.

endAction

An action that causes media playback to end.

TVPlaylistEndAction

The actions that cause media playback to end.

Relationships

Inherits From

See Also

Custom Player

TVMediaItem

A single audio or video item 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.