---
title: "copyCloseCaptionData(_:frameCount:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [provideo encoder extensions 1.0+]
path: "professional_video_applications/compressormediadecoder/copyclosecaptiondata(_:framecount:)"
---

# copyCloseCaptionData(_:frameCount:)

Returns a list of closed-caption tracks associated with the specified video frames.

## Declaration

```swift
func copyCloseCaptionData(_ startFrame: Int64, frameCount: Int64) -> [AnyHashable : Any]!
```

## Parameters

- `startFrame`: The frame number at which to start collecting the closed-caption data.
- `frameCount`: The number of frames to retrieve the closed-caption data from.

## Return Value

Return Value nil if closed-caption data is not available. Otherwise, it returns a dictionary with a frame number as the key, and a value that’s an array of 16-bit integers representing the closed-caption data.

## Discussion

Discussion note: The decoder object supports only CEA-608 closed-caption format.

## See Also

### Getting Decoded Frames and Samples

- [copyAudio(atStart:count:)](professional_video_applications/compressormediadecoder/copyaudio(atstart:count:).md)
- [copyFrame(_:)](professional_video_applications/compressormediadecoder/copyframe(_:).md)
- [releaseFrame(_:)](professional_video_applications/compressormediadecoder/releaseframe(_:).md)
- [CompressorMediaDecoderPtr](professional_video_applications/compressormediadecoderptr.md)
