<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeySessionServerPlaybackContextOption",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:@T@AVContentKeySessionServerPlaybackContextOption"
  },
  "title" : "AVContentKeySessionServerPlaybackContextOption"
}
-->

# AVContentKeySessionServerPlaybackContextOption

Options for specifying additional information for generating server playback context (SPC).

```
struct AVContentKeySessionServerPlaybackContextOption
```

## Topics

### Server playback context options

[`protocolVersions`](/documentation/AVFoundation/AVContentKeySessionServerPlaybackContextOption/protocolVersions)

Specifies the versions of the content protection protocols supported by the application.

[`serverChallenge`](/documentation/AVFoundation/AVContentKeySessionServerPlaybackContextOption/serverChallenge)

Specifies a nonce to include in the secure server playback context (SPC) to prevent replay attacks.

### Initializing an options structure

[`init(rawValue:)`](/documentation/AVFoundation/AVContentKeySessionServerPlaybackContextOption/init(rawValue:))

Creates a playback context options structure with the specified raw value.



---

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)