decrypt
open override fun decrypt(receiver: RtpReceiver, userId: String, trackType: E2EETrackType?): Result<Unit>
Called once per incoming track, when the subscriber learns which participant it belongs to. The implementation is expected to install a frame decryptor on receiver.
Return
Success when the frame decryptor was attached, or a failure that leaves the track available for a later attachment attempt.
Parameters
receiver
The receiver carrying the remote track.
userId
The user the track belongs to. Keys are looked up per user, so a wrong value here surfaces as undecryptable media rather than as an error.
trackType
Which kind of track this is, or null when it cannot be mapped.