---
title: "outputProvider(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avassetreader/outputprovider(for:)"
---

# outputProvider(for:)

Attaches the output to the reader and returns an output provider for reading sample buffers.

## Declaration

```swift
func outputProvider(for output: AVAssetReaderOutput) -> sending AVAssetReaderOutput.Provider<CMReadySampleBuffer<CMSampleBuffer.DynamicContent>>
```

## Parameters

- `output`: The output to be attached to the reader.

## Return Value

Return Value A reader output provider with an interface for reading sample buffers.

## See Also

### Accessing output providers

- [outputProviderWithRandomAccess(for:)](avfoundation/avassetreader/outputproviderwithrandomaccess(for:).md)
- [outputCaptionProvider(for:validationDelegate:)](avfoundation/avassetreader/outputcaptionprovider(for:validationdelegate:).md)
- [outputCaptionProviderWithRandomAccess(for:validationDelegate:)](avfoundation/avassetreader/outputcaptionproviderwithrandomaccess(for:validationdelegate:).md)
- [outputMetadataProvider(for:)](avfoundation/avassetreader/outputmetadataprovider(for:).md)
- [outputMetadataProviderWithRandomAccess(for:)](avfoundation/avassetreader/outputmetadataproviderwithrandomaccess(for:).md)
