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.