Class FrameCryptor
- Namespace
- LiveKit.Rtc
- Assembly
- LivekitRtc.dll
Frame cryptor for a specific participant.
public class FrameCryptor
- Inheritance
-
FrameCryptor
- Inherited Members
Constructors
FrameCryptor(ulong, string, int, bool)
Used by the SDK. Get the cryptors from GetFrameCryptors() instead: a cryptor created without a track SID cannot be addressed by SetEnabled(bool) and SetKeyIndex(int).
public FrameCryptor(ulong roomHandle, string participantIdentity, int keyIndex, bool enabled)
Parameters
roomHandleulongNative handle of the room, which the public API does not expose.
participantIdentitystringThe participant identity.
keyIndexintThe key index.
enabledboolWhether encryption is enabled.
FrameCryptor(ulong, string, string, int, bool)
Used by the SDK. Get the cryptors from GetFrameCryptors() instead of constructing them.
public FrameCryptor(ulong roomHandle, string participantIdentity, string trackSid, int keyIndex, bool enabled)
Parameters
roomHandleulongNative handle of the room, which the public API does not expose.
participantIdentitystringThe participant identity.
trackSidstringThe SID of the track the cryptor encrypts or decrypts.
keyIndexintThe key index.
enabledboolWhether encryption is enabled.
Properties
Enabled
Gets whether encryption is enabled.
public bool Enabled { get; }
Property Value
KeyIndex
Gets the key index.
public int KeyIndex { get; }
Property Value
ParticipantIdentity
Gets the participant identity.
public string ParticipantIdentity { get; }
Property Value
TrackSid
Gets the SID of the track this cryptor encrypts or decrypts.
public string TrackSid { get; }
Property Value
Methods
SetEnabled(bool)
Sets whether encryption is enabled.
public void SetEnabled(bool enabled)
Parameters
enabledboolTrue to enable, false to disable.
SetKeyIndex(int)
Sets the key index.
public void SetKeyIndex(int keyIndex)
Parameters
keyIndexintThe key index.