<!--
{
  "availability" : [
    "ProVideo Encoder Extensions: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Professional Video Applications",
  "identifier" : "/documentation/professional_video_applications/CompressorExtensionEncoder/setStateFromPause(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)CompressorExtensionEncoder(im)setStateFromPause:"
  },
  "title" : "setStateFromPause(_:)"
}
-->

# setStateFromPause(_:)

Sets the extension to a previously saved state.

```
func setStateFromPause(_ pausedState: [AnyHashable : Any]!)
```

## Parameters

`pausedState`

A set of attributes specifying the extension’s previously saved state information.

## Discussion

The Compressor app calls this method before resuming an encoding job. The Compressor app provides attributes an extension requires to resume an encoding job from the point at which the encoding stopped. These attributes are the ones the extension passed to the Compressor app while pausing an encoder job. If the attributes dictionary is empty, the extension restarts the encoding job from the beginning. See [`cancel(forPause:)`](/documentation/professional_video_applications/CompressorExtensionEncoder/cancel(forPause:)).

The Compressor app resumes the encoding job by calling the [`runTranscode(for:start:duration:toFile:startTimeCode:)`](/documentation/professional_video_applications/CompressorExtensionEncoder/runTranscode(for:start:duration:toFile:startTimeCode:)) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)