---
title: availablePhotoCodecTypes
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotooutput/availablephotocodectypes
---

# availablePhotoCodecTypes

The compression codecs this capture output currently supports for photo capture.

## Declaration

```swift
var availablePhotoCodecTypes: [AVVideoCodecType] { get }
```

## Discussion

Discussion To capture a photo in a compressed format, such as JPEG, use the init(format:) initializer to create your photo settings object. In that initializer’s format dictionary, pass the key AVVideoCodecKey, whose value must be one of the codec identifiers listed in this array. note: Read this property only after adding the photo capture output to an AVCaptureSession object containing a video source. If the photo capture output isn’t connected to a session with a video source, this array is empty. This property supports key-value observing.

## See Also

### Determining supported codec types

- [supportedPhotoCodecTypes(for:)](avfoundation/avcapturephotooutput/supportedphotocodectypes(for:).md)
