View Source Membrane.Agora.Source (Membrane Agora plugin v0.2.4)

Membrane source that wraps Agora's Server Gateway SDK.

Element options

Passed via struct Membrane.Agora.Source.t/0

  • app_id

    String.t()

    Required
    ID of an Agora application.

  • channel_name

    String.t()

    Required

  • token

    String.t()

    Required

  • user_id

    String.t()

    Default value: "0"
    User ID, must contain only numbers (0-9).

    If set to "0" (default), the user ID will be chosen automatically.

Pads

:audio

Accepted formats:

%Membrane.RawAudio{sample_rate: 44100, channels: 2, sample_format: :s16le}
Direction::output
Availability::always
Flow control::push

:video

Accepted formats:

%Membrane.H264{alignment: :au}
Direction::output
Availability::always
Flow control::push

Summary

Types

t()

Struct containing options for Membrane.Agora.Source

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.Agora.Source{
  app_id: String.t(),
  channel_name: String.t(),
  token: String.t(),
  user_id: String.t()
}

Struct containing options for Membrane.Agora.Source

Functions

@spec options() :: keyword()

Returns description of options available for this module