Yamaha MusicCast™ v0.1.3 MusicCast.UPnP.Service

A module for working with UPnP A/V services.

Example

defmodule AVTransport do
  use MusicCast.UPnP.Service, type: "AVTransport:1"
end

By default, the service will be generated from the priv/<av_transport_1.xml> file of the current application but it can be configured to be any subdirectory of priv by specifying the :priv option.

Summary

Functions

Calls an action on a UPnP service

Returns a map representing the UPnP service

Functions

call_action(control_url, service_type, action, params)
call_action(String.t, String.t, String.t | Atom.t, Map.t) ::
  {:ok, term} |
  {:error, term}

Calls an action on a UPnP service.

describe(service_url)
describe(String.t) :: {:ok, term} | {:error, term}

Returns a map representing the UPnP service.