View Source Mediasoup.DataProducer (mediasoup_elixir v0.14.4)
https://mediasoup.org/documentation/v3/mediasoup/api/#DataProducer
Summary
Types
https://mediasoup.org/documentation/v3/mediasoup/api/#dataProducer-type "sctp" or "direct"
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1
.
Types
@type dataProducerType() :: String.t()
https://mediasoup.org/documentation/v3/mediasoup/api/#dataProducer-type "sctp" or "direct"
@type event_type() :: :on_close
@type sctpStreamParameters() :: map()
@type t() :: %Mediasoup.DataProducer{ id: String.t(), pid: pid(), sctp_stream_parameters: sctpStreamParameters(), type: dataProducerType() }
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec close(t()) :: :ok
@spec event(t(), pid(), event_types :: [event_type()]) :: {:ok} | {:error, :terminated}
Callback implementation for GenServer.init/1
.
@spec sctp_stream_parameters(t()) :: sctpStreamParameters()
@spec type(t()) :: dataProducerType()