decrypt abstract method

Future<void> decrypt(
  1. RTCRtpReceiver receiver, {
  2. required String userId,
  3. E2eeTrackType? trackType,
})

Decrypts everything receiver delivers from now on.

userId is the remote participant's id — it selects the key that participant encrypted with. Passing the local user's id here decrypts with the wrong key and yields e2ee.decryption_failed.

trackType groups replay windows the same way it does for encrypt.

Implementation

Future<void> decrypt(
  RTCRtpReceiver receiver, {
  required String userId,
  E2eeTrackType? trackType,
});