<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVAssetWriter/canApply(outputSettings:forMediaType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetWriter(im)canApplyOutputSettings:forMediaType:"
  },
  "title" : "canApply(outputSettings:forMediaType:)"
}
-->

# canApply(outputSettings:forMediaType:)

Determines whether the output file format supports the output settings for a specific media type.

```
func canApply(outputSettings: [String : Any]?, forMediaType mediaType: AVMediaType) -> Bool
```

## Parameters

`outputSettings`

The output settings to validate.

`mediaType`

The media type to validate the output settings for.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the format supports the output settings; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Use this method to determine the compatibility of output settings for a particular media type. For example, video compression settings that specify H.264 compression aren’t compatible with file formats that don’t contain H.264-compressed video.

---

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)