View Source Membrane.RTC.Engine.Message.TrackAdded (Membrane RTC Engine v0.23.0)

Message emitted when a track gets added.

Summary

Types

t()

Describes TrackAdded message structure.

Types

@type t() :: %Membrane.RTC.Engine.Message.TrackAdded{
  endpoint_id: Membrane.RTC.Engine.Endpoint.id(),
  endpoint_type: Membrane.RTC.Engine.Endpoint.type(),
  track_encoding: Membrane.RTC.Engine.Track.encoding(),
  track_id: Membrane.RTC.Engine.Track.id(),
  track_metadata: any(),
  track_type: :audio | :video
}

Describes TrackAdded message structure.

  • endpoint_id - id of the endpoint that published the track
  • endpoint_type - type of the endpoint that published the track
  • track_id - id of the track that was added
  • track_type - type of the track that was added
  • track_encoding - encoding of the track that was added
  • track_metadata - metadata of the added track