TrackEvent

sealed interface TrackEvent(source)

Represents events related to media tracks in a WebRTC peer connection.

These events allow monitoring when tracks are added to or removed from the connection.

Inheritors

Types

Link copied to clipboard
class Add(val track: WebRtcMedia.Track) : TrackEvent

Event emitted when the track is added to the connection.

Link copied to clipboard
class Remove(val track: WebRtcMedia.Track) : TrackEvent

Event emitted when the track is removed from the connection by the other peer. This is different from MediaStreamTrack's ended event.

Properties

Link copied to clipboard
abstract val track: WebRtcMedia.Track