Yamaha MusicCast™ v0.1.5 MusicCast.Network.Entity
A module for managing MusicCast™ enabled devices.
A network entity is automatically started when a MusicCast enabled device is
discovered. See the MusicCast.UPnP.SSDPClient
for implementation details. Once started,
the entity process is available to the network registry via it MusicCast device ID.
See MusicCast.whereis/1
and MusicCast.which_devices/1
for more details about the network registry.
Each entity process keeps it state synchronized with the device it is paired with.
This task is acomplished by the MusicCast.Network.EventListener
process which forwards
incoming YXC unicast messages to the affected entity processes.
See MusicCast.subscribe/1
and MusicCast.unsubscribe/1
for more details.
Summary
Functions
Looks-up the value(s) for the given key(s)
Decreases the volume by step
Increases the volume by step
Mutes the volume
Plays the next track in the playback queue
Pauses playback of the current track
Begins playback of the current track
Plays the previous track in the playback queue
Stops playback
Selects the given input
Sets the volume to the given volume
Starts an entity as part of a supervision tree
Toggles repeat settings
Toggles repeat settings
Unmutes the volume
Pauses playback of the current UPnP A/V transport URL
Begins playback of the current UPnP A/V transport URL
Sets the UPnP A/V transport URL to the given url
Stops playback of the current UPnP A/V transport URL
Types
lookup_key :: :host | :upnp | :device_id | :network_name | :available_inputs | :status | :playback
Functions
Looks-up the value(s) for the given key(s).
Decreases the volume by step
.
Increases the volume by step
.
Plays the next track in the playback queue.
Pauses playback of the current track.
Plays the previous track in the playback queue.
Selects the given input
.
To get a list of available inputs for a specific device, pass :available_inputs
to __lookup__/2
.
Sets the volume to the given volume
.
start_link(ip_address, upnp_desc, Keyword.t) :: GenServer.on_start
Starts an entity as part of a supervision tree.
See GenServer.stop/1
.
Pauses playback of the current UPnP A/V transport URL.
Begins playback of the current UPnP A/V transport URL.
upnp_set_av_transport_url(pid, String.t) :: :ok | {:error, term}
Sets the UPnP A/V transport URL to the given url
.