Returns the list of photo codecs (such as JPEG or HEVC) supported for photo data in the specified file type.
- iOS 11.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The file type (such as JFIF or HEIF) for which to obtain codec information.
An array of video codec types supported for encoding in the specified file type.
When you issue a photo capture request, you can separately specify the format for capturing or encoding image data and the container format for producing output files containing that data. However, each file type supports only a specific set of image data types.
After choosing a file type from the
available array, use this method to find a compatible image data codec before creating a photo settings object.