create

fun create(userId: String, algorithm: E2EEAlgorithm = E2EEAlgorithm.AES_128_GCM): Result<StreamEncryptionManager>

Creates a manager for userId, which must be the local user's ID — it is the identity outgoing frames are encrypted under, and the one remote peers look up keys by.

Call this after the io.getstream.video.android.core.StreamVideo client is built: it allocates native state, so it needs WebRTC's native library loaded.

Return

The manager, or a failure when this WebRTC build does not support encryption or native manager allocation fails.

Parameters

algorithm

The AES-GCM variant to use. Every participant must agree on it, and on a matching key length, or frames will not decode.