View Source Membrane.RTC.Engine.Endpoint (Membrane RTC Engine v0.22.0)

Module representing RTC Engine's endpoint.

For specific information about possible endpoints, refer to the documentation of Membrane.RTC.Engine.

Summary

Types

t()

Module representing RTC Engine's endpoint.

Types

@type id() :: any()
@type t() :: %Membrane.RTC.Engine.Endpoint{
  id: id(),
  inbound_tracks: %{
    required(Membrane.RTC.Engine.Track.id()) => Membrane.RTC.Engine.Track.t()
  },
  metadata: any(),
  type: type()
}

Module representing RTC Engine's endpoint.

This module contains:

  • id - id of the endpoint.
  • type - type of the endpoint.
  • metadata - metadata of the endpoint, assigned when engine receives {:ready, metadata} message from the endpoint.
  • inbound_tracks - inbound tracks (received by the endpoint from "outside" of the engine) of the endpoint.
@type type() :: module()

Functions

Link to this function

get_active_track_metadata(endpoint)

View Source
@spec get_active_track_metadata(endpoint :: t()) :: %{
  required(Membrane.RTC.Engine.Track.id()) => any()
}
Link to this function

get_active_tracks(endpoint)

View Source
@spec get_active_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
Link to this function

get_audio_tracks(endpoint)

View Source
@spec get_audio_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
Link to this function

get_track_by_id(endpoint, id)

View Source
@spec get_track_by_id(endpoint :: t(), id :: Membrane.RTC.Engine.Track.id()) ::
  Membrane.RTC.Engine.Track.t() | nil
@spec get_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
Link to this function

get_video_tracks(endpoint)

View Source
@spec get_video_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
Link to this function

new(id, type, inbound_tracks)

View Source
@spec new(
  id :: id(),
  type :: type(),
  inbound_tracks :: [Membrane.RTC.Engine.Track.t()]
) :: t()
Link to this function

update_track_disabled_variants(endpoint, track_id, value)

View Source
@spec update_track_disabled_variants(
  endpoint :: t(),
  track_id :: Membrane.RTC.Engine.Track.id(),
  disabled_variants :: [Membrane.RTC.Engine.Track.variant()]
) :: t()
Link to this function

update_track_encoding(endpoint, track_id, value)

View Source
@spec update_track_encoding(
  endpoint :: t(),
  track_id :: Membrane.RTC.Engine.Track.id(),
  encoding :: atom()
) :: t()
Link to this function

update_track_metadata(endpoint, track_id, metadata)

View Source
@spec update_track_metadata(
  endpoint :: t(),
  track_id :: Membrane.RTC.Engine.Track.id(),
  metadata :: any()
) :: t()