View Source Membrane.RTSP (Membrane RTSP v0.7.1)
Functions for interfacing with a RTSP session
Summary
Functions
Returns a specification to start this module under a supervisor.
Same as start_link/2, but doesn't link the session process.
Starts and links session process with given URL as a base path for requests.
Types
@type option() :: {:connection_timeout, non_neg_integer()} | {:response_timeout, non_neg_integer()}
@type options() :: [option()]
@type t() :: pid()
Functions
@spec announce(t(), headers(), binary()) :: Membrane.RTSP.Response.result()
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec close(pid()) :: :ok
@spec describe(t(), headers()) :: Membrane.RTSP.Response.result()
@spec get_parameter(t(), headers(), binary()) :: Membrane.RTSP.Response.result()
@spec get_socket(t()) :: :gen_tcp.socket()
@spec handle_response(t(), binary()) :: Membrane.RTSP.Response.result()
@spec options(t(), headers()) :: Membrane.RTSP.Response.result()
@spec pause(t(), headers()) :: Membrane.RTSP.Response.result()
@spec play(t(), headers()) :: Membrane.RTSP.Response.result()
@spec record(t(), headers()) :: Membrane.RTSP.Response.result()
Link to this function
request_no_response(session, method, headers \\ [], body \\ "", path \\ nil)
View Source@spec set_parameter(t(), headers(), binary()) :: Membrane.RTSP.Response.result()
@spec setup(t(), binary(), headers()) :: Membrane.RTSP.Response.result()
@spec start(binary() | URI.t(), Keyword.t()) :: GenServer.on_start()
Same as start_link/2, but doesn't link the session process.
@spec start_link(binary() | URI.t(), options()) :: GenServer.on_start()
Starts and links session process with given URL as a base path for requests.
@spec teardown(t(), headers()) :: Membrane.RTSP.Response.result()
@spec transfer_socket_control(t(), pid()) :: :ok | {:error, :closed | :not_owner | :badarg | :inet.posix()}
@spec user_agent() :: binary()