Instance Method

add(_:)

Adds the specified media data collector to the player item’s collection of media collectors.

Declaration

func add(_ collector: AVPlayerItemMediaDataCollector)

Parameters

collector

An instance of AVPlayerItemMediaDataCollector.

Discussion

This method may incur additional I/O to collect the requested media data asynchronously.

See Also

Managing the Item’s Data Collectors

var mediaDataCollectors: [AVPlayerItemMediaDataCollector]

The collection of associated media data collectors.

func remove(AVPlayerItemMediaDataCollector)

Removes the specified media data collector from the player item’s collection of media collectors.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software