Contents

dataSource

The data source provided by the app.

Declaration

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

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