View Source Membrane.RTC.Engine.Endpoint.WebRTC.SimulcastConfig (Membrane RTC Engine v0.3.0)
Module representing simulcast configuration for WebRTC endpoint.
Link to this section Summary
Types
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.default_encoding
- function used to determine initial encoding 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 encoding will be used.
Link to this section Types
@type t() :: %Membrane.RTC.Engine.Endpoint.WebRTC.SimulcastConfig{ default_encoding: (Membrane.RTC.Engine.Track.t() -> String.t() | nil), enabled: boolean() }
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.default_encoding
- function used to determine initial encoding 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 encoding will be used.
Link to this section Functions
@spec default_encoding(Membrane.RTC.Engine.Track.t()) :: nil
Default implementation of default_encoding
function in t/0
.
Returns nil, which will result in choosing the highest possible encoding.