Instance Property

dataSource

The data source provided by the app.

Declaration

weak var dataSource: MPPlayableContentDataSource? { get set }

Discussion

The dataSource property ensures that random access of media items is supported through the MPPlayableContentDataSource protocol because the methods in the protocol can be accessed at any point during the app’s lifetime. Set this property as soon as the data is available.

See Also

Providing Playable Content

protocol MPPlayableContentDataSource

The data source providing media metadata to external media players so they can build user interfaces displaying your app’s content.