# RTSP
[](https://hex.pm/packages/rtsp)
[](https://hexdocs.pm/rtsp)
Simplify connecting to RTSP servers.
## Usage
Start the client, connect and start receiving media
```elixir
{: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:
```elixir
{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`:
```elixir
def deps do
[
{:rtsp, "~> 0.1.0"}
]
end
```