Documentation ¶
Index ¶
Constants ¶
View Source
const ADD_TO_QUEUE_ACTION = `urn:schemas-upnp-org:service:AVTransport:1#AddURIToQueue`
View Source
const ADD_TO_QUEUE_BODY_TEMPLATE = `` /* 289-byte string literal not displayed */
View Source
const BROWSE_ACTION = `"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"`
View Source
const CLEAR_QUEUE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#RemoveAllTracksFromQueue"`
View Source
const CLEAR_QUEUE_BODY = `` /* 136-byte string literal not displayed */
View Source
const CONTENT_DIRECTORY_ENDPOINT = `/MediaServer/ContentDirectory/Control`
View Source
const DEVICE_ENDPOINT = `/DeviceProperties/Control`
View Source
const ENQUEUE_BODY_TEMPLATE = `` /* 193-byte string literal not displayed */
View Source
const ENQUEUE_RESPONSE = `` /* 266-byte string literal not displayed */
View Source
const GET_BASS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetBass"`
View Source
const GET_BASS_BODY = `` /* 132-byte string literal not displayed */
View Source
const GET_CUR_TRACK_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#GetPositionInfo"`
View Source
const GET_CUR_TRACK_BODY = `` /* 143-byte string literal not displayed */
View Source
const GET_CUR_TRANSPORT_ACTION = `"urn:schema-upnp-org:service:AVTransport:1#GetTransportInfo"`
View Source
const GET_CUR_TRANSPORT_BODY = `` /* 142-byte string literal not displayed */
View Source
const GET_MUTE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetMute"`
View Source
const GET_MUTE_BODY = `` /* 132-byte string literal not displayed */
View Source
const GET_QUEUE_BODY_TEMPLATE = `` /* 327-byte string literal not displayed */
View Source
const GET_RADIO_FAVORITES_BODY_TEMPLATE = `` /* 317-byte string literal not displayed */
View Source
const GET_TREBLE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetTreble"`
View Source
const GET_TREBLE_BODY = `` /* 136-byte string literal not displayed */
View Source
const GET_VOLUME_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#GetVolume"`
View Source
const GET_VOLUME_BODY = `` /* 136-byte string literal not displayed */
View Source
const JOIN_BODY_TEMPLATE = `` /* 209-byte string literal not displayed */
View Source
const JOIN_RESPONSE = `` /* 266-byte string literal not displayed */
View Source
const MCAST_GRP = "239.255.255.250"
View Source
const MCAST_PORT = 1900
View Source
const MUTE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetMute"`
View Source
const MUTE_BODY_TEMPLATE = `` /* 165-byte string literal not displayed */
View Source
const MUTE_RESPONSE = `` /* 251-byte string literal not displayed */
View Source
const NEXT_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Next"`
View Source
const NEXT_BODY = `<u:Next xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Next>`
View Source
const NEXT_RESPONSE = `` /* 240-byte string literal not displayed */
View Source
const PAUSE_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Pause"`
View Source
const PAUSE_BODY = `<u:Pause xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Pause>`
View Source
const PAUSE_RESPONSE = `` /* 242-byte string literal not displayed */
View Source
const PLAYER_SEARCH = `` /* 128-byte string literal not displayed */
View Source
const PLAY_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Play"`
View Source
const PLAY_BODY = `<u:Play xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Play>`
View Source
const PLAY_FROM_QUEUE_BODY_TEMPLATE = `` /* 211-byte string literal not displayed */
View Source
const PLAY_FROM_QUEUE_RESPONSE = `` /* 266-byte string literal not displayed */
View Source
const PLAY_RESPONSE = `` /* 240-byte string literal not displayed */
View Source
const PLAY_URI_BODY_TEMPLATE = `` /* 199-byte string literal not displayed */
View Source
const PREV_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Previous"`
View Source
const PREV_BODY = `<u:Previous xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Previous>`
View Source
const PREV_RESPONSE = `` /* 248-byte string literal not displayed */
View Source
const RADIO_SHOWS = 1
View Source
const RADIO_STATIONS = 0
View Source
const REMOVE_FROM_QUEUE_ACTION = `urn:schemas-upnp-org:service:AVTransport:1#RemoveTrackFromQueue`
View Source
const REMOVE_FROM_QUEUE_BODY_TEMPLATE = `` /* 196-byte string literal not displayed */
View Source
const RENDERING_ENDPOINT = `/MediaRenderer/RenderingControl/Control`
View Source
const SEEK_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Seek"`
View Source
const SEEK_TIMESTAMP_BODY_TEMPLATE = `` /* 145-byte string literal not displayed */
View Source
const SEEK_TRACK_BODY_TEMPLATE = `` /* 147-byte string literal not displayed */
View Source
const SET_BASS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetBass"`
View Source
const SET_BASS_BODY_TEMPLATE = `` /* 140-byte string literal not displayed */
View Source
const SET_BASS_RESPONSE = `` /* 251-byte string literal not displayed */
View Source
const SET_LEDSTATE_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#SetLEDState"`
View Source
const SET_LEDSTATE_BODY_TEMPLATE = `<u:SetLEDState xmlns:u="urn:schemas-upnp-org:service:DeviceProperties:1"><DesiredLEDState>{state}</DesiredLEDState>`
View Source
const SET_LEDSTATE_RESPONSE = `` /* 259-byte string literal not displayed */
View Source
const SET_LINEIN_BODY_TEMPLATE = `` /* 217-byte string literal not displayed */
View Source
const SET_LINEIN_RESPONSE = `` /* 266-byte string literal not displayed */
View Source
const SET_LOUDNESS_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetLoudness"`
View Source
const SET_LOUDNESS_BODY_TEMPLATE = `` /* 185-byte string literal not displayed */
View Source
const SET_LOUDNESS_RESPONSE = `` /* 259-byte string literal not displayed */
View Source
const SET_PLAYER_NAME_ACTION = `"urn:schemas-upnp-org:service:DeviceProperties:1#SetZoneAttributes"`
View Source
const SET_PLAYER_NAME_BODY_TEMPLATE = `` /* 189-byte string literal not displayed */
View Source
const SET_PLAYER_NAME_RESPONSE = `` /* 273-byte string literal not displayed */
View Source
const SET_TRANSPORT_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"`
View Source
const SET_TREBLE_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetTreble"`
View Source
const SET_TREBLE_BODY_TEMPLATE = `` /* 150-byte string literal not displayed */
View Source
const SET_TREBLE_RESPONSE = `` /* 255-byte string literal not displayed */
View Source
const SET_VOLUME_ACTION = `"urn:schemas-upnp-org:service:RenderingControl:1#SetVolume"`
View Source
const SET_VOLUME_BODY_TEMPLATE = `` /* 175-byte string literal not displayed */
View Source
const SET_VOLUME_RESPONSE = `` /* 255-byte string literal not displayed */
View Source
const SOAP_TEMPLATE = `` /* 160-byte string literal not displayed */
View Source
const STOP_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#Stop"`
View Source
const STOP_BODY = `<u:Stop xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID>0</InstanceID><Speed>1</Speed></u:Stop>`
View Source
const STOP_RESPONSE = `` /* 240-byte string literal not displayed */
View Source
const TRANSPORT_ENDPOINT = `/MediaRenderer/AVTransport/Control`
View Source
const UNJOIN_ACTION = `"urn:schemas-upnp-org:service:AVTransport:1#BecomeCoordinatorOfStandaloneGroup"`
View Source
const UNJOIN_BODY = `` /* 172-byte string literal not displayed */
View Source
const UNJOIN_RESPONSE = `` /* 300-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZonePlayer ¶
type ZonePlayer struct {
IpAddress string
}
func NewZonePlayer ¶
func NewZonePlayer(ipAddress string) ZonePlayer
func (*ZonePlayer) CurrentTrackInfo ¶
func (zp *ZonePlayer) CurrentTrackInfo() *TrackInfo
func (*ZonePlayer) GetVolume ¶
func (zp *ZonePlayer) GetVolume() int
func (*ZonePlayer) Next ¶
func (zp *ZonePlayer) Next()
func (*ZonePlayer) Pause ¶
func (zp *ZonePlayer) Pause()
func (*ZonePlayer) Play ¶
func (zp *ZonePlayer) Play()
func (*ZonePlayer) Previous ¶
func (zp *ZonePlayer) Previous()
func (*ZonePlayer) Stop ¶
func (zp *ZonePlayer) Stop()
Click to show internal directories.
Click to hide internal directories.