---
title: TVPlaylist
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvplaylist
---

# TVPlaylist

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

## Declaration

```swift
class TVPlaylist
```

## Overview

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](tvmlkit/tvplaylist/mediaitems.md)
- [userInfo](tvmlkit/tvplaylist/userinfo.md)
- [repeatMode](tvmlkit/tvplaylist/repeatmode-swift.property.md)
- [TVPlaylist.RepeatMode](tvmlkit/tvplaylist/repeatmode-swift.enum.md)
- [endAction](tvmlkit/tvplaylist/endaction-swift.property.md)
- [TVPlaylist.EndAction](tvmlkit/tvplaylist/endaction-swift.enum.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Custom Player

- [TVMediaItem](tvmlkit/tvmediaitem.md)
- [TVPlayer](tvmlkit/tvplayer.md)
