Provides end-to-end encryption (E2EE) key management using a shared passphrase across all participants.
Creates a new instance of ExternalE2EEKeyProvider.
ExternalE2EEKeyProvider
Optional
Optional configuration settings for the key provider.
Sets the shared encryption key used for end-to-end encryption.
The shared encryption key. Can be a string or an ArrayBuffer.
A promise that resolves once the key has been successfully set.
const keyProvider = new ExternalE2EEKeyProvider({ discardFrameWhenCryptorNotReady: true,});await keyProvider.setSharedKey("<SECRET_KEY>"); Copy
const keyProvider = new ExternalE2EEKeyProvider({ discardFrameWhenCryptorNotReady: true,});await keyProvider.setSharedKey("<SECRET_KEY>");
Provides end-to-end encryption (E2EE) key management using a shared passphrase across all participants.