ExOxvif.Media (ex_oxvif v0.1.0)

Copy Markdown View Source

Media (Media1) service: profiles and stream URIs.

Summary

Functions

List the device's media profiles.

The HTTP JPEG snapshot URI for a profile.

The RTSP stream URI for a profile.

Functions

profiles(session, opts \\ [])

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

List the device's media profiles.

snapshot_uri(session, profile, opts \\ [])

@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(session, profile, opts \\ [])

@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.