E2EEEvent

data class E2EEEvent(val type: E2EEEventType, val name: String, val userId: String?, val trackType: E2EETrackType?, val keyIndex: Int?, val version: Int?, val reason: String?, val keyState: E2EEKeyState?, val encodePerformance: List<E2EETrackPerformance>, val decodePerformance: List<E2EETrackPerformance>)

A state change reported by StreamEncryptionManager, most usefully a decryption failure for a specific participant. Encryption problems are otherwise silent — media simply arrives undecodable — so this is the main signal for surfacing "you are on a different key" in a UI.

Parameters

type

What happened. Prefer branching on this over name.

name

The event name as reported by the native layer, useful for logs.

userId

The participant the event concerns, when it is scoped to one.

trackType

The track the event concerns, when it is scoped to one.

keyIndex

The key index involved, for key-related events.

version

The frame format version, for E2EEEventType.UNSUPPORTED_VERSION.

reason

Extra detail from the native layer, when present.

keyState

The current key inventory, populated for E2EEEventType.KEY_STATE.

encodePerformance

Per-track encrypt timings, populated for E2EEEventType.PERF_REPORT.

decodePerformance

Per-track decrypt timings, populated for E2EEEventType.PERF_REPORT.

Constructors

Link copied to clipboard
constructor(type: E2EEEventType, name: String, userId: String?, trackType: E2EETrackType?, keyIndex: Int?, version: Int?, reason: String?, keyState: E2EEKeyState?, encodePerformance: List<E2EETrackPerformance>, decodePerformance: List<E2EETrackPerformance>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val version: Int?