Membrane.RTC.Engine.Endpoint.ExWebRTC.SimulcastConfig (Membrane RTC Engine ExWebRTC Endpoint v0.2.0)

View Source

Module representing simulcast configuration for WebRTC endpoint.

Summary

Types

t()

Simulcast configuration.

Functions

Default implementation of initial_target_variant function in t/0.

Types

t()

@type t() :: %Membrane.RTC.Engine.Endpoint.ExWebRTC.SimulcastConfig{
  enabled: boolean(),
  initial_target_variant: (Membrane.RTC.Engine.Track.t() ->
                             Membrane.RTC.Engine.Track.variant())
}

Simulcast configuration.

  • enabled - whether to accept simulcast tracks or not. Setting this to false will result in rejecting all incoming simulcast tracks i.e. client will not send them.
  • initial_target_variant - function used to determine initial target variant this endpoint is willing to receive for given track. It is called for each track this endpoint subscribes for. If not provided, the highest possible variant will be used.

Functions

initial_target_variant(track)

@spec initial_target_variant(Membrane.RTC.Engine.Track.t()) :: :high

Default implementation of initial_target_variant function in t/0.

Returns :high, which will result in choosing the highest possible variant.