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:

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

Installation

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

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