# SFrame options

Options of the SFrame transforms and streams of WebRTC Encoded Transform.

### *class* webrtc.models.sframe_transform_options.SFrameTransformOptions(cipher_suite)

The options of an SFrame decryptor or SFrame stream.

Used by [`webrtc.RTCRtpSFrameDecryptor`](../interfaces/sframe_transform.md#webrtc.interfaces.sframe_transform.RTCRtpSFrameDecryptor), [`webrtc.SFrameEncryptorStream`](../interfaces/sframe_transform.md#webrtc.interfaces.sframe_transform.SFrameEncryptorStream) and
[`webrtc.SFrameDecryptorStream`](../interfaces/sframe_transform.md#webrtc.interfaces.sframe_transform.SFrameDecryptorStream).

* **Parameters:**
  **cipher_suite** ([`webrtc.SFrameCipherSuite`](../enums.md#webrtc.enums.SFrameCipherSuite)) – The cipher suite, as a member or its string value.
* **Raises:**
  [**ValueError**](https://docs.python.org/3/builtins/exceptions.html#ValueError) – If the cipher suite isn’t a member of [`webrtc.SFrameCipherSuite`](../enums.md#webrtc.enums.SFrameCipherSuite).

### *class* webrtc.models.sframe_transform_options.RTCRtpSFrameEncryptorOptions(cipher_suite, type=SFrameType.per_frame)

The options of an [`webrtc.RTCRtpSFrameEncryptor`](../interfaces/sframe_transform.md#webrtc.interfaces.sframe_transform.RTCRtpSFrameEncryptor).

* **Parameters:**
  * **cipher_suite** ([`webrtc.SFrameCipherSuite`](../enums.md#webrtc.enums.SFrameCipherSuite)) – The cipher suite, as a member or its string value.
  * **type** ([`webrtc.SFrameType`](../enums.md#webrtc.enums.SFrameType), optional) – Whether whole frames or RTP packets are encrypted, as a member or
    its string value. The encryptor only supports `'per-frame'`.
* **Raises:**
  [**ValueError**](https://docs.python.org/3/builtins/exceptions.html#ValueError) – If the cipher suite or the type isn’t a member of its enum.
