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

# setAnnotations(_:)

Adds annotations to an encoded media file.

## Declaration

```swift
func setAnnotations(_ annotations: [AnyHashable : Any]!)
```

## Parameters

- `annotations`: A dictionary of source media annotations.

## See Also

### Setting Encoding Values

- [setSettings(_:)](professional_video_applications/compressorextensionencoder/setsettings(_:).md)
- [setChapters(_:)](professional_video_applications/compressorextensionencoder/setchapters(_:).md)
