---
title: mediaItems
framework: intents
role: symbol
role_heading: Instance Property
path: intents/inplaymediaintent/mediaitems
---

# mediaItems

The media content.

## Declaration

```swift
var mediaItems: [INMediaItem]? { get }
```

## Discussion

Discussion This property is a media item such as a song, audiobook, or podcast episode. Although the array can contain more than one INMediaItem object, the system uses only the first item in the array. You set mediaItems when creating the INPlayMediaIntent object.

## See Also

### Accessing Media Items

- [mediaContainer](intents/inplaymediaintent/mediacontainer.md)
