View Source Membrane.RTC.Engine.Endpoint (Membrane RTC Engine v0.23.0)
Module representing RTC Engine's endpoint.
For specific information about possible endpoints, refer to the documentation of Membrane.RTC.Engine
.
Summary
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
@spec get_active_track_metadata(endpoint :: t()) :: %{ required(Membrane.RTC.Engine.Track.id()) => any() }
@spec get_active_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
@spec get_audio_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
@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()]
@spec get_video_tracks(endpoint :: t()) :: [Membrane.RTC.Engine.Track.t()]
@spec new( id :: id(), type :: type(), inbound_tracks :: [Membrane.RTC.Engine.Track.t()] ) :: t()
@spec update_track_disabled_variants( endpoint :: t(), track_id :: Membrane.RTC.Engine.Track.id(), disabled_variants :: [Membrane.RTC.Engine.Track.variant()] ) :: t()
@spec update_track_encoding( endpoint :: t(), track_id :: Membrane.RTC.Engine.Track.id(), encoding :: atom() ) :: t()
@spec update_track_metadata( endpoint :: t(), track_id :: Membrane.RTC.Engine.Track.id(), metadata :: any() ) :: t()