Adds the specified media data collector to the player item’s collection of media collectors.
SDKs
- iOS 9.3+
- macOS 10.11.3+
- Mac Catalyst 13.0+
- tvOS 9.3+
- watchOS 2.3+
Framework
- AVFoundation
Declaration
func add(_ collector: AVPlayer Item Media Data Collector)
Parameters
collector
An instance of
AVPlayer
.Item Media Data Collector
Discussion
This method may incur additional I/O to collect the requested media data asynchronously.