Protocol

MPPlayable​Content​Data​Source

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

Overview

To support external media players, create a class that conforms to the MPPlayable​Content​Data​Source protocol. When your app launches, create an instance of this class and assign it to the shared data​Source property. This data source provides media metadata to external media players so that they can build user interfaces displaying your app’s content. It is best to set this data source as early as possible in your app’s lifecycle, as iOS may start asking for content right away.

Symbols

Retrieving a Media Item

func content​Item(at:​ Index​Path)

Retrieves the media item at the specified index.

Working with Child Nodes

func child​Items​Display​Playback​Progress(at:​ Index​Path)

Returns a Boolean value indicating whether the provided content supports playback progress.

func number​Of​Child​Items(at:​ Index​Path)

Provides the number of child nodes for the indicated node.

Relationships

Inherits From