Membrane.ICE.Handshake.init
You're seeing just the callback
init
, go back to Membrane.ICE.Handshake module for more information.
Specs
init(id :: pos_integer(), parent :: pid(), opts :: list()) :: {:ok, init_data :: any(), state()} | {:finished, init_data :: any()}
Called only once at Sink/Source preparation.
opts
- options specified in handshake_opts
option in Sink/Source
init_data
- any data that will be fired as a notification to pipeline. Notification
will be of type init_notification/0
state
- state that will be passed to other functions
id
- id assigned by ICE plugin. It corresponds to component_id. Has to be used for
retransmitting packets
Returning by a peer :finished
will mark handshake as finished.