ExLibSRTP (ExLibSRTP v0.1.0) View Source

libsrtp bindings for Elixir.

The workflow goes as follows:

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

Link to this function

add_stream(srtp, policy)

View Source

Specs

add_stream(t(), policy :: ExLibSRTP.Policy.t()) :: :ok

Specs

new() :: t()
Link to this function

protect(srtp, unprotected, mki_index \\ nil)

View Source

Specs

protect(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) ::
  {:ok, protected :: binary()}
Link to this function

protect_rtcp(srtp, unprotected, mki_index \\ nil)

View Source

Specs

protect_rtcp(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) ::
  {:ok, protected :: binary()}
Link to this function

remove_stream(srtp, ssrc)

View Source

Specs

remove_stream(t(), ssrc :: ssrc_t()) :: :ok
Link to this function

unprotect(srtp, protected, use_mki \\ false)

View Source

Specs

unprotect(t(), protected :: binary(), use_mki :: boolean()) ::
  {:ok, unprotected :: binary()} | {:error, :auth_fail | :reply_fail | :bad_mki}
Link to this function

unprotect_rtcp(srtp, protected, use_mki \\ false)

View Source

Specs

unprotect_rtcp(t(), protected :: binary(), use_mki :: boolean()) ::
  {:ok, unprotected :: binary()} | {:error, :auth_fail | :reply_fail | :bad_mki}

Specs

update(t(), policy :: ExLibSRTP.Policy.t()) :: :ok