---
title: "setSettings(_:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [provideo encoder extensions 1.0+]
path: "professional_video_applications/compressorextensionencoder/setsettings(_:)"
---

# setSettings(_:)

Sets the current encoding settings based on the given setting values.

## Declaration

```swift
func setSettings(_ settings: CompressorExtensionSettingsPtr!)
```

## Parameters

- `settings`: A pointer to the doc://com.apple.professionalvideoapplications/documentation/professional_video_applications/CompressorExtensionSettings object.

## Discussion

Discussion During an encoding process, the Compressor app provides the extension with the current encoder settings. If the settings object contains an empty encoder setting string, use default values for the encoder settings.

## See Also

### Setting Encoding Values

- [setAnnotations(_:)](professional_video_applications/compressorextensionencoder/setannotations(_:).md)
- [setChapters(_:)](professional_video_applications/compressorextensionencoder/setchapters(_:).md)
