Пример #1
0
func ConnectReciva(dev ssdp.Device, reactor upnp.Reactor, flags int) (reciva *Reciva) {
	if svc_map, err := upnp.Describe(dev.Location()); nil != err {
		panic(err)
	} else {
		reciva = MakeReciva(svc_map, reactor, flags)
	}
	return
}
Пример #2
0
func Connect(dev ssdp.Device, reactor upnp.Reactor, flags int) (sonos *Sonos) {
	if svc_map, err := upnp.Describe(dev.Location()); nil != err {
		panic(err)
	} else {
		sonos = MakeSonos(svc_map, reactor, flags)
	}
	return
}
Пример #3
0
func isSonosPlayer(device ssdp.Device) bool {
	return device.Product() == "Sonos" && device.Name() == "ZonePlayer"
}