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,});try { await keyProvider.setSharedKey("<SECRET_KEY>");} catch (err) { console.log("Error in setSharedKey", err);} Copy
const keyProvider = new ExternalE2EEKeyProvider({ discardFrameWhenCryptorNotReady: true,});try { await keyProvider.setSharedKey("<SECRET_KEY>");} catch (err) { console.log("Error in setSharedKey", err);}
Provides end-to-end encryption (E2EE) key management using a shared passphrase across all participants.