-
public final class E2EEEventA 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.
-
-
Field Summary
Fields Modifier and Type Field Description private final E2EEEventTypetypeprivate final Stringnameprivate final StringuserIdprivate final E2EETrackTypetrackTypeprivate final IntegerkeyIndexprivate final Integerversionprivate final Stringreasonprivate final E2EEKeyStatekeyStateprivate final List<E2EETrackPerformance>encodePerformanceprivate final List<E2EETrackPerformance>decodePerformance
-
Constructor Summary
Constructors Constructor Description E2EEEvent(E2EEEventType type, String name, String userId, E2EETrackType trackType, Integer keyIndex, Integer version, String reason, E2EEKeyState keyState, List<E2EETrackPerformance> encodePerformance, List<E2EETrackPerformance> decodePerformance)
-
Method Summary
Modifier and Type Method Description final E2EEEventTypegetType()final StringgetName()final StringgetUserId()final E2EETrackTypegetTrackType()final IntegergetKeyIndex()final IntegergetVersion()final StringgetReason()final E2EEKeyStategetKeyState()final List<E2EETrackPerformance>getEncodePerformance()final List<E2EETrackPerformance>getDecodePerformance()-
-
Constructor Detail
-
E2EEEvent
E2EEEvent(E2EEEventType type, String name, String userId, E2EETrackType trackType, Integer keyIndex, Integer version, String reason, E2EEKeyState keyState, List<E2EETrackPerformance> encodePerformance, List<E2EETrackPerformance> decodePerformance)
- Parameters:
type- What happened.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.
-
-
Method Detail
-
getType
final E2EEEventType getType()
-
getTrackType
final E2EETrackType getTrackType()
-
getKeyIndex
final Integer getKeyIndex()
-
getVersion
final Integer getVersion()
-
getKeyState
final E2EEKeyState getKeyState()
-
getEncodePerformance
final List<E2EETrackPerformance> getEncodePerformance()
-
getDecodePerformance
final List<E2EETrackPerformance> getDecodePerformance()
-
-
-
-