View Source ExLibSRTP (ExLibSRTP v0.5.1)
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
@type ssrc_t() :: 0..4_294_967_295
@opaque t()
Link to this section Functions
@spec add_stream(t(), policy :: ExLibSRTP.Policy.t()) :: :ok
@spec new() :: t()
@spec protect(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) :: {:ok, protected :: binary()}
@spec protect_rtcp(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) :: {:ok, protected :: binary()}
@spec update(t(), policy :: ExLibSRTP.Policy.t()) :: :ok