View Source Membrane.RTSP.Logic (Membrane RTSP v0.6.2)

Logic for RTSP session

Summary

Functions

Link to this function

apply_credentials(request, uri, auth)

View Source
Link to this function

detect_authentication_type(response, state)

View Source
@spec detect_authentication_type(
  Membrane.RTSP.Response.t(),
  Membrane.RTSP.Logic.State.t()
) ::
  {:ok, Membrane.RTSP.Logic.State.t()}
Link to this function

encode_digest(request, uri, options)

View Source
Link to this function

execute(request, state, get_response \\ true)

View Source
@spec execute(Membrane.RTSP.Request.t(), Membrane.RTSP.Logic.State.t(), boolean()) ::
  :ok | {:ok, binary()} | {:error, reason :: any()}
Link to this function

handle_session_id(response, state)

View Source
@spec handle_session_id(Membrane.RTSP.Response.t(), Membrane.RTSP.Logic.State.t()) ::
  {:ok, Membrane.RTSP.Logic.State.t()} | {:error, reason :: any()}
Link to this function

inject_content_length(request)

View Source
@spec inject_content_length(Membrane.RTSP.Request.t()) :: Membrane.RTSP.Request.t()
Link to this function

inject_session_header(request, session_id)

View Source
@spec inject_session_header(Membrane.RTSP.Request.t(), binary()) ::
  Membrane.RTSP.Request.t()
@spec md5([String.t()]) :: String.t()
Link to this function

parse_response(raw_response, state)

View Source
@spec parse_response(binary(), Membrane.RTSP.Logic.State.t()) ::
  {:ok, Membrane.RTSP.Response.t(), Membrane.RTSP.Logic.State.t()}
  | {:error, reason :: any()}
@spec user_agent() :: binary()