Documentation ¶
Overview ¶
A go-language implementation of the Sonos UPnP API.
Index ¶
- Constants
- func Coverage(s *Sonos)
- func Discover(ifiname, port string) (mgr ssdp.Manager, err error)
- func MakeReactor(ifiname, port string) upnp.Reactor
- type Sonos
- func (this *Sonos) GetAlbumTracks(album string) ([]model.Object, error)
- func (this *Sonos) GetAllGenres() (objects []model.Object, err error)
- func (this *Sonos) GetArtistAlbums(artist string) (objects []model.Object, err error)
- func (this *Sonos) GetDirectChildren(objectId string) (objects []model.Object, err error)
- func (this *Sonos) GetGenreArtists(genre string) ([]model.Object, error)
- func (this *Sonos) GetMetadata(objectId string) (objects []model.Object, err error)
- func (this *Sonos) GetQueueContents() (objects []model.Object, err error)
- func (this *Sonos) GetRootLevelChildren() (objects []model.Object, err error)
- func (this *Sonos) GetTrackFromAlbum(album, track string) ([]model.Object, error)
- func (this *Sonos) ListAttributes() (objects []model.Object, err error)
- func (this *Sonos) ListChildren(objectId string) (objects []model.Object, err error)
- func (this *Sonos) ListInternetRadio() (objects []model.Object, err error)
- func (this *Sonos) ListMusicShares() (objects []model.Object, err error)
- func (this *Sonos) ListQueues() (objects []model.Object, err error)
- func (this *Sonos) ListSavedQueues() (objects []model.Object, err error)
Constants ¶
View Source
const ( ObjectID_Attributes = "A:" ObjectID_Queues = "Q:" ObjectID_SavedQueues = "SQ:" ObjectID_InternetRadio = "R:" ObjectID_EntireNetwork = "EN:" // ObjectID_Queue_AVT_Instance_0 = "Q:0" // ObjectID_Attribute_Genres = "A:GENRE" ObjectID_Attribute_Album = "A:ALBUM" ObjectID_Attribute_Artist = "A:ARTIST" )
View Source
const ( SVC_ALARM_CLOCK = 1 SVC_AV_TRANSPORT = SVC_ALARM_CLOCK << 1 SVC_CONNECTION_MANAGER = SVC_AV_TRANSPORT << 1 SVC_CONTENT_DIRECTORY = SVC_CONNECTION_MANAGER << 1 SVC_DEVICE_PROPERTIES = SVC_CONTENT_DIRECTORY << 1 SVC_GROUP_MANAGEMENT = SVC_DEVICE_PROPERTIES << 1 SVC_MUSIC_SERVICES = SVC_GROUP_MANAGEMENT << 1 SVC_RENDERING_CONTROL = SVC_MUSIC_SERVICES << 1 SVC_SYSTEM_PROPERTIES = SVC_RENDERING_CONTROL << 1 SVC_ZONE_GROUP_TOPOLOGY = SVC_SYSTEM_PROPERTIES << 1 // SVC_ALL = SVC_ALARM_CLOCK | SVC_AV_TRANSPORT | SVC_CONNECTION_MANAGER | SVC_CONTENT_DIRECTORY | SVC_DEVICE_PROPERTIES | SVC_GROUP_MANAGEMENT | SVC_MUSIC_SERVICES | SVC_RENDERING_CONTROL | SVC_SYSTEM_PROPERTIES | SVC_ZONE_GROUP_TOPOLOGY )
View Source
const MUSIC_SERVICES = "schemas-upnp-org-MusicServices"
View Source
const SONOS = "Sonos"
Variables ¶
This section is empty.
Functions ¶
func MakeReactor ¶
Types ¶
type Sonos ¶
type Sonos struct { upnp.AlarmClock upnp.AVTransport upnp.ConnectionManager upnp.ContentDirectory upnp.DeviceProperties upnp.GroupManagement upnp.MusicServices upnp.RenderingControl upnp.SystemProperties upnp.ZoneGroupTopology }
func ConnectAny ¶
func (*Sonos) GetAlbumTracks ¶
func (*Sonos) GetArtistAlbums ¶
func (*Sonos) GetDirectChildren ¶
func (*Sonos) GetGenreArtists ¶
func (*Sonos) GetMetadata ¶
func (*Sonos) GetQueueContents ¶
func (*Sonos) GetRootLevelChildren ¶
func (*Sonos) GetTrackFromAlbum ¶
func (*Sonos) ListAttributes ¶
func (*Sonos) ListChildren ¶
func (*Sonos) ListInternetRadio ¶
func (*Sonos) ListMusicShares ¶
Directories ¶
Path | Synopsis |
---|---|
A module to support bookmarking discovered UPnP devices.
|
A module to support bookmarking discovered UPnP devices. |
A client to demonstrate controlling Sonos from the command line.
|
A client to demonstrate controlling Sonos from the command line. |
A server to demonstrate controlling Sonos from a web browser.
|
A server to demonstrate controlling Sonos from a web browser. |
A minimal implementation of the Digital Item Declaration Language (DIDL).
|
A minimal implementation of the Digital Item Declaration Language (DIDL). |
A collection of object classes used in message passing in go-sonos.
|
A collection of object classes used in message passing in go-sonos. |
A client implementation of the SSDP protocol.
|
A client implementation of the SSDP protocol. |
An implementation of the Sonos Universal Plug and Play API.
|
An implementation of the Sonos Universal Plug and Play API. |
Click to show internal directories.
Click to hide internal directories.