BaseKeyProvider

class BaseKeyProvider : KeyProvider

Default key provider for end-to-end encryption (E2EE).

BaseKeyProvider manages encryption keys using WebRTC's FrameCryptorKeyProvider. It supports both shared keys (same key for all participants) and per-participant keys.

Code Example:


val keyProvider = BaseKeyProvider()
keyProvider.setSharedKey("my-secret-encryption-key")
VideoSDK.setKeyProvider(keyProvider)

// Then initialize and join the meeting
val meeting = VideoSDK.initMeeting(...)
meeting.join()

See also

VideoSDK.setKeyProvider()

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun setKey(participantId: String, key: String)
Sets an encryption key for a specific participant.
Link copied to clipboard
Sets a shared encryption key used by all participants.