add(_:)
Adds the specified media data collector to the player item’s collection of media collectors.
Declaration
nonisolated 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.