ExLibSRTP (ExLibSRTP v0.1.0) View Source
libsrtp bindings for Elixir.
The workflow goes as follows:
- create ExLibSRTP instance with
new/0
- add streams with
add_stream/2
- protect or unprotect packets with
protect/3
,unprotect/3
,protect_rtcp/3
,unprotect_rtcp/3
- remove streams with
remove_stream/2
Link to this section Summary
Link to this section Types
Specs
ssrc_t() :: 0..4_294_967_295
Specs
t()
Link to this section Functions
Specs
add_stream(t(), policy :: ExLibSRTP.Policy.t()) :: :ok
Specs
new() :: t()
Specs
protect(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) :: {:ok, protected :: binary()}
Specs
protect_rtcp(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) :: {:ok, protected :: binary()}
Specs
Specs
Specs
Specs
update(t(), policy :: ExLibSRTP.Policy.t()) :: :ok