<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VideoToolbox",
  "identifier" : "/documentation/VideoToolbox/VTSessionSetProperty(_:key:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Video Toolbox"
    ],
    "preciseIdentifier" : "c:@F@VTSessionSetProperty"
  },
  "title" : "VTSessionSetProperty(_:key:value:)"
}
-->

# VTSessionSetProperty(_:key:value:)

Sets a property on a VideoToolbox session.

```
func VTSessionSetProperty(_ session: VTSession, key propertyKey: CFString, value propertyValue: CFTypeRef?) -> OSStatus
```

## Discussion

Setting a property value to `NULL` restores the default value.

## Topics

### Related Documentation

[Compression Properties](/documentation/VideoToolbox/compression-properties)

Properties that you use to configure a compression session.

[Decompression Properties](/documentation/VideoToolbox/decompression-properties)

Properties used to configure a VideoToolbox decompression session.

[Pixel Transfer Properties](/documentation/VideoToolbox/pixel-transfer-properties)

Properties used to configure a VideoToolbox pixel transfer session.



---

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)