Hex.pm API Docs

Simplify connecting to RTSP servers.

Usage

Start the client, connect and start receiving media

{:ok, session} = RTSP.start_link(stream_uri: "rtsp://localhost:554/stream", allowed_media_types: [:video])
{:ok, tracks} = RTSP.connect(session)
:ok = RTSP.play(session)

The current process will receive media stream:

{:rtsp, pid_or_name, {control_path, {sample, rtp_timestamp, key_frame?, timestamp}}}

Installation

The package can be installed by adding rtsp to your list of dependencies in mix.exs:

def deps do
  [
    {:rtsp, "~> 0.4.0"}
  ]
end