---
title: dataSource
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpplayablecontentmanager/datasource
---

# dataSource

The data source provided by the app.

## Declaration

```swift
weak var dataSource: (any MPPlayableContentDataSource)? { get set }
```

## Discussion

Discussion This property ensures support for random access of media items through the MPPlayableContentDataSource protocol, whose methods are callable at any point during the app’s lifetime. Set this property as soon as the data is available.

## See Also

### Providing playable content

- [MPPlayableContentDataSource](mediaplayer/mpplayablecontentdatasource.md)
