# `ExOxvif.Media`
[🔗](https://github.com/cortfritz/ex_oxvif/blob/v0.1.0/lib/ex_oxvif/media.ex#L1)

Media (Media1) service: profiles and stream URIs.

# `profiles`

```elixir
@spec profiles(ExOxvif.Session.t(), ExOxvif.call_opts()) ::
  {:ok, [ExOxvif.MediaProfile.t()]} | {:error, ExOxvif.Error.t()}
```

List the device's media profiles.

# `snapshot_uri`

```elixir
@spec snapshot_uri(ExOxvif.Session.t(), String.t(), ExOxvif.call_opts()) ::
  {:ok, ExOxvif.MediaUri.t()} | {:error, ExOxvif.Error.t()}
```

The HTTP JPEG snapshot URI for a profile.

# `stream_uri`

```elixir
@spec stream_uri(ExOxvif.Session.t(), String.t(), ExOxvif.call_opts()) ::
  {:ok, ExOxvif.MediaUri.t()} | {:error, ExOxvif.Error.t()}
```

The RTSP stream URI for a profile.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
