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, webrtc.SFrameEncryptorStream and webrtc.SFrameDecryptorStream.

Parameters:

cipher_suite (webrtc.SFrameCipherSuite) – The cipher suite, as a member or its string value.

Raises:

ValueError – If the cipher suite isn’t a member of webrtc.SFrameCipherSuite.

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

The options of an webrtc.RTCRtpSFrameEncryptor.

Parameters:
  • cipher_suite (webrtc.SFrameCipherSuite) – The cipher suite, as a member or its string value.

  • type (webrtc.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 – If the cipher suite or the type isn’t a member of its enum.