View Source ExLibSRTP (ExLibSRTP v0.5.1)

libsrtp bindings for Elixir.

The workflow goes as follows:

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

Link to this function

add_stream(srtp, policy)

View Source
@spec add_stream(t(), policy :: ExLibSRTP.Policy.t()) :: :ok
@spec new() :: t()
Link to this function

protect(srtp, unprotected, mki_index \\ nil)

View Source
@spec 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
@spec protect_rtcp(t(), unprotected :: binary(), mki_index :: pos_integer() | nil) ::
  {:ok, protected :: binary()}
Link to this function

remove_stream(srtp, ssrc)

View Source
@spec remove_stream(t(), ssrc :: ssrc_t()) :: :ok
Link to this function

unprotect(srtp, protected, use_mki \\ false)

View Source
@spec 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
@spec unprotect_rtcp(t(), protected :: binary(), use_mki :: boolean()) ::
  {:ok, unprotected :: binary()} | {:error, :auth_fail | :reply_fail | :bad_mki}
@spec update(t(), policy :: ExLibSRTP.Policy.t()) :: :ok