<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetReader/outputCaptionProvider(for:validationDelegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So13AVAssetReaderC12AVFoundationE21outputCaptionProvider3for18validationDelegateSo0aB6OutputCACE0F0Cy_So14AVCaptionGroupCGSo0ab5TrackJ0C_So0abE18ValidationHandling_pSgtF"
  },
  "title" : "outputCaptionProvider(for:validationDelegate:)"
}
-->

# outputCaptionProvider(for:validationDelegate:)

Attaches the output to the reader and returns an output provider for reading caption groups.

```
func outputCaptionProvider(for output: AVAssetReaderTrackOutput, validationDelegate: (any AVAssetReaderCaptionValidationHandling)? = nil) -> sending AVAssetReaderOutput.Provider<AVCaptionGroup>
```

## Parameters

`output`

The output to be attached to the reader.

## Return Value

A reader output provider with an interface for reading caption groups.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)