on E2EEState Changed
Called when end-to-end encryption starts working or fails on one of this participant's streams.
A stream that fails to decrypt with the key this device holds reports E2EEState.DecryptionFailed after a run of failed frames. A sender this device holds no key for reports nothing.
Encryption states are reported on the local participant, decryption states on the remote sender.
Parameters
stream
the stream concerned. If the SDK cannot match the reported ID it substitutes another stream of the same RTCStream.kind, so trust RTCStream.kind over RTCStream.id here.