Membrane.RTSP.Session (Membrane RTSP v0.2.1) View Source
This module represents an active Session.
Link to this section Summary
Functions
Closes open Session that was started using Session.new/4
.
Starts a Session under a DynamicSupervisor
.
Executes the request on a given session.
Start and links a Session.
Link to this section Types
Specs
Link to this section Functions
Specs
Closes open Session that was started using Session.new/4
.
Link to this function
new(supervisor, url, transport \\ Transport.TCPSocket, options \\ [])
View SourceSpecs
Starts a Session under a DynamicSupervisor
.
Specs
request(t(), binary(), Membrane.RTSP.headers(), binary(), nil | binary()) :: Membrane.RTSP.Response.result()
Executes the request on a given session.
Before execution populates with a default headers setting Session
and User-Agent
header. If the URI contains credentials they will also
be added unless Authorization
header is present in request.
Start and links a Session.
If an error will occur during startup, an exit signal will be sent. Session
started this way can be stopped by calling Supervisor.stop/3
.