Struct sonos::Speaker [] [src]

pub struct Speaker {
    pub ip: IpAddr,
    pub model: String,
    pub model_number: String,
    pub software_version: String,
    pub hardware_version: String,
    pub serial_number: String,
    pub name: String,
    pub uuid: String,
}

Fields

Methods

impl Speaker
[src]

[src]

Create a new instance of this struct from an IP address

[src]

Get the coordinator for this speaker.

[src]

Call the Sonos SOAP endpoint

Arguments

  • endpoint - The SOAP endpoint to call (eg. MediaRenderer/AVTransport/Control)
  • service - The SOAP service to call (eg. urn:schemas-upnp-org:service:AVTransport:1)
  • action - The action to call on the soap service (eg. Play)
  • payload - XML doc to pass inside the action call body
  • coordinator - Whether this SOAP call should be performed on the group coordinator or the speaker it was called on

[src]

Play the current track

[src]

Pause the current track

[src]

Stop the current queue

[src]

Skip the current track

[src]

Go to the previous track

[src]

Seek to a time on the current track

[src]

Change the track, beginning at 1

[src]

Remove track at index from queue, beginning at 1

[src]

Add a new track to the end of the queue

[src]

Add a track to the queue to play next

[src]

Replace the current track with a new one

[src]

Remove every track from the queue

[src]

Get the current volume

[src]

Set a new volume from 0-100.

[src]

Check if this player is currently muted

[src]

Mute the current player

[src]

Unmute the current player

[src]

Get the transport state of the current player

[src]

Get information about the current track

Trait Implementations

impl Debug for Speaker
[src]

[src]

Formats the value using the given formatter.