---
title: TVMediaItem
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvmediaitem
---

# TVMediaItem

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

## Declaration

```swift
class TVMediaItem
```

## Overview

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](tvmlkit/tvmediaitem/containsexplicitcontent.md)
- [contentRatingDomain](tvmlkit/tvmediaitem/contentratingdomain-swift.property.md)
- [TVMediaItem.ContentRatingDomain](tvmlkit/tvmediaitem/contentratingdomain-swift.struct.md)
- [contentRatingRanking](tvmlkit/tvmediaitem/contentratingranking.md)

### Identifying Media Items

- [artworkImageURL](tvmlkit/tvmediaitem/artworkimageurl.md)
- [itemDescription](tvmlkit/tvmediaitem/itemdescription.md)
- [subtitle](tvmlkit/tvmediaitem/subtitle.md)
- [title](tvmlkit/tvmediaitem/title.md)
- [type](tvmlkit/tvmediaitem/type.md)
- [TVMediaItem.MediaType](tvmlkit/tvmediaitem/mediatype.md)
- [url](tvmlkit/tvmediaitem/url.md)
- [userInfo](tvmlkit/tvmediaitem/userinfo.md)

### Setting Timing Options

- [highlightGroups](tvmlkit/tvmediaitem/highlightgroups.md)
- [TVMediaItem.HighlightGroup](tvmlkit/tvmediaitem/highlightgroup.md)
- [interstitials](tvmlkit/tvmediaitem/interstitials.md)
- [TVMediaItem.TimeRange](tvmlkit/tvmediaitem/timerange.md)
- [resumeTime](tvmlkit/tvmediaitem/resumetime.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

- [TVPlaylist](tvmlkit/tvplaylist.md)
- [TVPlayer](tvmlkit/tvplayer.md)
