Yamaha MusicCast™ v0.2.0 MusicCast.UPnP.Plug.EventDispatcher

A Plug for receiving and dispatching incoming UPnP events.

Coupled with the network registry, this module is used to forward incoming unicast events to their respective MusicCast.Network.Entity processes.

Example

scope "/upnp", MusicCast.UPnP.Plug do
  forward "/event", EventDispatcher, service: MusicCast.UPnP.AVTransport
end

In order to subscribe to UPnP events, MusicCast.Network.Entity requires the :upnp_callback_url config entry to point to this plug’s URL:

config :musiccast,
  upnp_callback_url: "http://192.168.0.42:4000/upnp/event"

Summary

Functions

Callback implementation for Plug.call/2

Callback implementation for Plug.init/1

Functions

call(conn, opts)

Callback implementation for Plug.call/2.

init(opts)
init(Plug.opts) :: Plug.opts

Callback implementation for Plug.init/1.