Documentation ¶
Index ¶
- Constants
- Variables
- type FavoritesInfo
- type FavoritesInfoRaw
- type FavoritesItem
- type FavoritesMetaData
- type QueInfo
- type QueInfoRaw
- type QueMetaData
- type QueTrack
- type TrackInfo
- type TrackInfoRaw
- type TrackMetaData
- type ZonePlayer
- func (zp *ZonePlayer) AddToQue(uri string, next bool) error
- func (zp *ZonePlayer) ClearQue() error
- func (zp *ZonePlayer) GetBass() (int, error)
- func (zp *ZonePlayer) GetFavoritesInfo() (*FavoritesInfo, error)
- func (zp *ZonePlayer) GetFavoritesInfoRaw(start int, count int) (FavoritesInfoRaw, error)
- func (zp *ZonePlayer) GetFavoritesRadioShowsInfo() (*FavoritesInfo, error)
- func (zp *ZonePlayer) GetFavoritesRadioShowsInfoRaw(start int, count int) (FavoritesInfoRaw, error)
- func (zp *ZonePlayer) GetFavoritesRadioStationsInfo() (*FavoritesInfo, error)
- func (zp *ZonePlayer) GetFavoritesRadioStationsInfoRaw(start int, count int) (FavoritesInfoRaw, error)
- func (zp *ZonePlayer) GetLedState() (bool, error)
- func (zp *ZonePlayer) GetLoudness() (bool, error)
- func (zp *ZonePlayer) GetMute() (bool, error)
- func (zp *ZonePlayer) GetPlayMode() (string, error)
- func (zp *ZonePlayer) GetPlayerName() (string, error)
- func (zp *ZonePlayer) GetQueInfo() (*QueInfo, error)
- func (zp *ZonePlayer) GetQueInfoRaw(start int, count int) (QueInfoRaw, error)
- func (zp *ZonePlayer) GetRepeat() (bool, error)
- func (zp *ZonePlayer) GetRepeatOne() (bool, error)
- func (zp *ZonePlayer) GetShuffle() (bool, error)
- func (zp *ZonePlayer) GetState() (bool, error)
- func (zp *ZonePlayer) GetStateRaw() (string, error)
- func (zp *ZonePlayer) GetTrackInfo() (*TrackInfo, error)
- func (zp *ZonePlayer) GetTrackInfoRaw() (TrackInfoRaw, error)
- func (zp *ZonePlayer) GetTreble() (int, error)
- func (zp *ZonePlayer) GetVolume() (int, error)
- func (zp *ZonePlayer) JoinPlayer(master_uid string) error
- func (zp *ZonePlayer) Next() error
- func (zp *ZonePlayer) Pause() error
- func (zp *ZonePlayer) Play() error
- func (zp *ZonePlayer) PlayFromQue(track int) error
- func (zp *ZonePlayer) PlayUri(uri string, meta string) error
- func (zp *ZonePlayer) Previous() error
- func (zp *ZonePlayer) RemoveFromQue(track int) error
- func (zp *ZonePlayer) Seek(timestamp string) error
- func (zp *ZonePlayer) SetBass(level int) error
- func (zp *ZonePlayer) SetLedState(state bool) error
- func (zp *ZonePlayer) SetLineIn(speaker_uid string) error
- func (zp *ZonePlayer) SetLoudness(state bool) error
- func (zp *ZonePlayer) SetMute(state bool) error
- func (zp *ZonePlayer) SetPlayMode(shuffle bool, repeat bool, repeat_one bool) error
- func (zp *ZonePlayer) SetPlayerName(name string) error
- func (zp *ZonePlayer) SetQue(uri string) error
- func (zp *ZonePlayer) SetRepeat(state bool) error
- func (zp *ZonePlayer) SetRepeatOne(state bool) error
- func (zp *ZonePlayer) SetShuffle(state bool) error
- func (zp *ZonePlayer) SetTreble(level int) error
- func (zp *ZonePlayer) SetVolume(level int) error
- func (zp *ZonePlayer) Stop() error
- func (zp *ZonePlayer) Testing() string
- func (zp *ZonePlayer) UnjoinPlayer() error
Constants ¶
const ADD_TO_QUEUE_ACTION = `urn:schemas-upnp-org:service:AVTransport:1#AddURIToQueue`
const ADD_TO_QUEUE_BODY_TEMPLATE = `` /* 303-byte string literal not displayed */
const ADD_TO_QUEUE_RESPONSE = ``
const CLEAR_QUEUE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#RemoveAllTracksFromQueue"`
const CLEAR_QUEUE_BODY = `` /* 136-byte string literal not displayed */
const CLEAR_QUEUE_RESPONSE = `` /* 280-byte string literal not displayed */
const CONTENT_DIRECTORY_ENDPOINT = `/MediaServer/ContentDirectory/Control`
const DEVICE_ENDPOINT = `/DeviceProperties/Control`
const GET_BASS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetBass"`
const GET_BASS_BODY = `` /* 132-byte string literal not displayed */
const GET_CUR_TRACK_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"`
const GET_CUR_TRACK_BODY = `` /* 143-byte string literal not displayed */
const GET_CUR_TRANSPORT_ACTION = `"urn:schema-upnp-org:service:AVTransport:1#GetTransportInfo"`
const GET_CUR_TRANSPORT_BODY = `` /* 142-byte string literal not displayed */
const GET_FAVORITES_RADIO_SHOWS_ACTION = `"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"`
const GET_FAVORITES_RADIO_SHOWS_BODY_TEMPLATE = `` /* 275-byte string literal not displayed */
const GET_FAVORITES_RADIO_STATIONS_ACTION = `"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"`
const GET_FAVORITES_RADIO_STATIONS_BODY_TEMPLATE = `` /* 275-byte string literal not displayed */
const GET_FAVORITES_SONOS_ACTION = `"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"`
const GET_FAVORITES_SONOS_BODY_TEMPLATE = `` /* 274-byte string literal not displayed */
const GET_LEDSTATE_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#GetLEDState"`
const GET_LEDSTATE_BODY = `` /* 140-byte string literal not displayed */
const GET_LOUDNESS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetLoudness"`
const GET_LOUDNESS_BODY = `` /* 140-byte string literal not displayed */
const GET_MUTE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetMute"`
const GET_MUTE_BODY = `` /* 132-byte string literal not displayed */
const GET_PLAYER_NAME_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#GetZoneAttributes"`
const GET_PLAYER_NAME_BODY = `` /* 152-byte string literal not displayed */
const GET_PLAYMODE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#GetTransportSettings"`
const GET_PLAYMODE_BODY = `` /* 128-byte string literal not displayed */
const GET_QUEUE_ACTION = `"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"`
const GET_QUEUE_BODY_TEMPLATE = `` /* 335-byte string literal not displayed */
const GET_TREBLE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetTreble"`
const GET_TREBLE_BODY = `` /* 136-byte string literal not displayed */
const GET_VOLUME_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"`
const GET_VOLUME_BODY = `` /* 136-byte string literal not displayed */
const JOIN_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"`
const JOIN_BODY_TEMPLATE = `` /* 209-byte string literal not displayed */
const JOIN_RESPONSE = `` /* 266-byte string literal not displayed */
const MCAST_GRP = "239.255.255.250"
const MCAST_PORT = 1900
const NEXT_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Next"`
const NEXT_BODY = `<u:Next xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Next>`
const NEXT_RESPONSE = `` /* 240-byte string literal not displayed */
const PAUSE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Pause"`
const PAUSE_BODY = `<u:Pause xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Pause>`
const PAUSE_RESPONSE = `` /* 242-byte string literal not displayed */
const PLAYER_SEARCH = `` /* 128-byte string literal not displayed */
const PLAY_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Play"`
const PLAY_BODY = `<u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play>`
const PLAY_FROM_QUEUE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Seek"`
const PLAY_FROM_QUEUE_BODY_TEMPLATE = `` /* 141-byte string literal not displayed */
const PLAY_FROM_QUEUE_RESPONSE = `` /* 240-byte string literal not displayed */
const PLAY_RESPONSE = `` /* 240-byte string literal not displayed */
const PLAY_URI_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"`
const PLAY_URI_BODY_TEMPLATE = `` /* 199-byte string literal not displayed */
const PLAY_URI_RESPONSE = `` /* 266-byte string literal not displayed */
const PREV_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Previous"`
const PREV_BODY = `<u:Previous xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Previous>`
const PREV_RESPONSE = `` /* 248-byte string literal not displayed */
const REMOVE_FROM_QUEUE_ACTION = `urn:schemas-upnp-org:service:AVTransport:1#RemoveTrackFromQueue`
const REMOVE_FROM_QUEUE_BODY_TEMPLATE = `` /* 182-byte string literal not displayed */
const REMOVE_FROM_QUEUE_RESPONSE = `` /* 272-byte string literal not displayed */
const RENDERING_ENDPOINT = `/MediaRenderer/RenderingControl/Control`
const SEEK_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Seek"`
const SEEK_BODY_TEMPLATE = `` /* 145-byte string literal not displayed */
const SEEK_RESPONSE = `` /* 240-byte string literal not displayed */
const SET_BASS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetBass"`
const SET_BASS_BODY_TEMPLATE = `` /* 140-byte string literal not displayed */
const SET_BASS_RESPONSE = `` /* 251-byte string literal not displayed */
const SET_LEDSTATE_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#SetLEDState"`
const SET_LEDSTATE_BODY_TEMPLATE = `<u:SetLEDState xmlns:u="urn:schemas-upnp-org:service:DeviceProperties:1"><DesiredLEDState>{ledstate}</DesiredLEDState>`
const SET_LEDSTATE_RESPONSE = `` /* 259-byte string literal not displayed */
const SET_LINEIN_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"`
const SET_LINEIN_BODY_TEMPLATE = `` /* 217-byte string literal not displayed */
const SET_LINEIN_RESPONSE = `` /* 266-byte string literal not displayed */
const SET_LOUDNESS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetLoudness"`
const SET_LOUDNESS_BODY_TEMPLATE = `` /* 185-byte string literal not displayed */
const SET_LOUDNESS_RESPONSE = `` /* 259-byte string literal not displayed */
const SET_MUTE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetMute"`
const SET_MUTE_BODY_TEMPLATE = `` /* 165-byte string literal not displayed */
const SET_MUTE_RESPONSE = `` /* 251-byte string literal not displayed */
const SET_PLAYER_NAME_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#SetZoneAttributes"`
const SET_PLAYER_NAME_BODY_TEMPLATE = `` /* 187-byte string literal not displayed */
const SET_PLAYER_NAME_RESPONSE = `` /* 271-byte string literal not displayed */
const SET_PLAYMODE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#SetPlayMode"`
const SET_PLAYMODE_BODY_TEMPLATE = `` /* 156-byte string literal not displayed */
const SET_PLAYMODE_RESPONSE = `` /* 254-byte string literal not displayed */
const SET_TREBLE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetTreble"`
const SET_TREBLE_BODY_TEMPLATE = `` /* 150-byte string literal not displayed */
const SET_TREBLE_RESPONSE = `` /* 255-byte string literal not displayed */
const SET_VOLUME_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetVolume"`
const SET_VOLUME_BODY_TEMPLATE = `` /* 175-byte string literal not displayed */
const SET_VOLUME_RESPONSE = `` /* 255-byte string literal not displayed */
const SOAP_TEMPLATE = `` /* 160-byte string literal not displayed */
const STOP_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Stop"`
const STOP_BODY = `<u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Stop>`
const STOP_RESPONSE = `` /* 240-byte string literal not displayed */
const TRANSPORT_ENDPOINT = `/MediaRenderer/AVTransport/Control`
const UNJOIN_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#BecomeCoordinatorOfStandaloneGroup"`
const UNJOIN_BODY = `` /* 172-byte string literal not displayed */
const UNJOIN_RESPONSE = `` /* 300-byte string literal not displayed */
Variables ¶
var ErrSonos = errSonos{ ErrUnexpectedResponse: errors.New("unexpected response"), ErrInvalidPlayMode: errors.New("invalid play mode"), }
Functions ¶
This section is empty.
Types ¶
type FavoritesInfo ¶
type FavoritesInfo struct { Count string TotalCount string Favorites []FavoritesItem }
type FavoritesInfoRaw ¶
type FavoritesInfoRaw struct { XMLName xml.Name `xml:"BrowseResponse"` Result string NumberReturned string TotalMatches string UpdateID string }
func (FavoritesInfoRaw) ParseMetaData ¶
func (favorites FavoritesInfoRaw) ParseMetaData() ([]FavoritesMetaData, error)
type FavoritesItem ¶
type FavoritesMetaData ¶
type FavoritesMetaData struct { XMLName xml.Name `xml:"item"` Title string `xml:"title"` Class string `xml:"class"` Ordinal string `xml:"ordinal"` Res string `xml:"res"` AlbumArtUri string `xml:"albumArtURI"` Type string `xml:"type"` Description string `xml:"description"` ResMD string `xml:"resMD"` }
type QueInfoRaw ¶
type QueInfoRaw struct { XMLName xml.Name `xml:"BrowseResponse"` Result string NumberReturned string TotalMatches string UpdateID string }
func (QueInfoRaw) ParseMetaData ¶
func (que QueInfoRaw) ParseMetaData() ([]QueMetaData, error)
type QueMetaData ¶
type TrackInfoRaw ¶
type TrackInfoRaw struct { XMLName xml.Name `xml:"GetPositionInfoResponse"` Track string TrackDuration string TrackMetaData string TrackURI string RelTime string AbsTime string RelCount string AbsCount string }
func (TrackInfoRaw) ParseMetaData ¶
func (track TrackInfoRaw) ParseMetaData() (TrackMetaData, error)
type TrackMetaData ¶
type ZonePlayer ¶
type ZonePlayer struct {
IpAddress string
}
func NewZonePlayer ¶
func NewZonePlayer(ipAddress string) *ZonePlayer
func (*ZonePlayer) AddToQue ¶
func (zp *ZonePlayer) AddToQue(uri string, next bool) error
Add URI to que.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) ClearQue ¶
func (zp *ZonePlayer) ClearQue() error
Clear que.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetBass ¶
func (zp *ZonePlayer) GetBass() (int, error)
Get current bass.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesInfo ¶
func (zp *ZonePlayer) GetFavoritesInfo() (*FavoritesInfo, error)
Get information about the favorites.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesInfoRaw ¶
func (zp *ZonePlayer) GetFavoritesInfoRaw(start int, count int) (FavoritesInfoRaw, error)
Same as GetFavoritesInfo but won't parse the information as much.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesRadioShowsInfo ¶
func (zp *ZonePlayer) GetFavoritesRadioShowsInfo() (*FavoritesInfo, error)
Get information about the favorites radio shows.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesRadioShowsInfoRaw ¶
func (zp *ZonePlayer) GetFavoritesRadioShowsInfoRaw(start int, count int) (FavoritesInfoRaw, error)
Same as GetFavoritesRadioShowsInfo but won't parse the information as much.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesRadioStationsInfo ¶
func (zp *ZonePlayer) GetFavoritesRadioStationsInfo() (*FavoritesInfo, error)
Get information about the favorites radio stations.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetFavoritesRadioStationsInfoRaw ¶
func (zp *ZonePlayer) GetFavoritesRadioStationsInfoRaw(start int, count int) (FavoritesInfoRaw, error)
Same as GetFavoritesRadioStationsInfo but won't parse the information as much.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetLedState ¶
func (zp *ZonePlayer) GetLedState() (bool, error)
Get current led state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetLoudness ¶
func (zp *ZonePlayer) GetLoudness() (bool, error)
Get current loudness state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetMute ¶
func (zp *ZonePlayer) GetMute() (bool, error)
Get current mute state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetPlayMode ¶
func (zp *ZonePlayer) GetPlayMode() (string, error)
Get player mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetPlayerName ¶
func (zp *ZonePlayer) GetPlayerName() (string, error)
Get player name.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetQueInfo ¶
func (zp *ZonePlayer) GetQueInfo() (*QueInfo, error)
Get information about the que.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetQueInfoRaw ¶
func (zp *ZonePlayer) GetQueInfoRaw(start int, count int) (QueInfoRaw, error)
Same as GetQueInfo but won't parse the information as much.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetRepeat ¶
func (zp *ZonePlayer) GetRepeat() (bool, error)
Get repeat mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetRepeatOne ¶
func (zp *ZonePlayer) GetRepeatOne() (bool, error)
Get repeat one mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetShuffle ¶
func (zp *ZonePlayer) GetShuffle() (bool, error)
Get shuffle mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetState ¶
func (zp *ZonePlayer) GetState() (bool, error)
Get current transport state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetStateRaw ¶
func (zp *ZonePlayer) GetStateRaw() (string, error)
Same as GetState but doesn't convert the state to bool.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetTrackInfo ¶
func (zp *ZonePlayer) GetTrackInfo() (*TrackInfo, error)
Get information about the current track.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetTrackInfoRaw ¶
func (zp *ZonePlayer) GetTrackInfoRaw() (TrackInfoRaw, error)
Same as GetTrackInfo but won't parse the information as much.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetTreble ¶
func (zp *ZonePlayer) GetTreble() (int, error)
Get current treble.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) GetVolume ¶
func (zp *ZonePlayer) GetVolume() (int, error)
Get current volume.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) JoinPlayer ¶
func (zp *ZonePlayer) JoinPlayer(master_uid string) error
Join player to master. (Untested)
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Next ¶
func (zp *ZonePlayer) Next() error
Next track.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Pause ¶
func (zp *ZonePlayer) Pause() error
Pause track.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Play ¶
func (zp *ZonePlayer) Play() error
Start track.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) PlayFromQue ¶
func (zp *ZonePlayer) PlayFromQue(track int) error
Play from que.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) PlayUri ¶
func (zp *ZonePlayer) PlayUri(uri string, meta string) error
Set URI. (Untested)
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Previous ¶
func (zp *ZonePlayer) Previous() error
Previous track.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) RemoveFromQue ¶
func (zp *ZonePlayer) RemoveFromQue(track int) error
Remove from que.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Seek ¶
func (zp *ZonePlayer) Seek(timestamp string) error
Set progress.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetBass ¶
func (zp *ZonePlayer) SetBass(level int) error
Set bass.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetLedState ¶
func (zp *ZonePlayer) SetLedState(state bool) error
Set led state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetLineIn ¶
func (zp *ZonePlayer) SetLineIn(speaker_uid string) error
Set line in. (untested)
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetLoudness ¶
func (zp *ZonePlayer) SetLoudness(state bool) error
Set loudness state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetMute ¶
func (zp *ZonePlayer) SetMute(state bool) error
Set mute state.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetPlayMode ¶
func (zp *ZonePlayer) SetPlayMode(shuffle bool, repeat bool, repeat_one bool) error
Set player mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetPlayerName ¶
func (zp *ZonePlayer) SetPlayerName(name string) error
Set player name.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetQue ¶
func (zp *ZonePlayer) SetQue(uri string) error
Set que. (Untested)
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetRepeat ¶
func (zp *ZonePlayer) SetRepeat(state bool) error
Set repeat mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetRepeatOne ¶
func (zp *ZonePlayer) SetRepeatOne(state bool) error
Set repeat one mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetShuffle ¶
func (zp *ZonePlayer) SetShuffle(state bool) error
Set shuffle mode.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetTreble ¶
func (zp *ZonePlayer) SetTreble(level int) error
Set treble.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) SetVolume ¶
func (zp *ZonePlayer) SetVolume(level int) error
Set volume.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Stop ¶
func (zp *ZonePlayer) Stop() error
Reset track progress and pause.
Error is returened when a request fails or if a unexpected response is returned.
func (*ZonePlayer) Testing ¶
func (zp *ZonePlayer) Testing() string
func (*ZonePlayer) UnjoinPlayer ¶
func (zp *ZonePlayer) UnjoinPlayer() error
Unjoin player. (Untested)
Error is returened when a request fails or if a unexpected response is returned.