Beispiel #1
0
 def on_device_found(self, device):
     log.msg('Found device %s with base URL %s' % (device,
                                                   device.get_base_url()))
     cpoint = AVControlPoint(device, self.photoweb, self.interface[0])
     devid = create_device_id(device.UDN)
     avc = AirPlayService(cpoint, device.friendlyName, host=self.interface[0], port=self._find_port(), index=self.interface[1], device_id=devid)
     avc.setName(device.UDN)
     avc.setServiceParent(self)
     
     if self.iweb:
         self.iweb.add_device(device) 
Beispiel #2
0
	def __del__(self):
		self.totem.action_stop()
		AirPlayService.__del__(self)
Beispiel #3
0
	def __init__(self, totem, name=None, host="0.0.0.0", port=22555):
		self.location = None
		self.totem = totem
		AirPlayService.__init__(self, name, host, port)
Beispiel #4
0
 def __del__(self):
     self.videoAirPlay.action_stop()
     AirPlayService.__del__(self)
Beispiel #5
0
 def __init__(self, videoAirPlay, name=None, host="0.0.0.0", port=22555):
     self.location = None
     self.videoAirPlay = videoAirPlay
     AirPlayService.__init__(self, name, host, port)
     print "Video AirPlay service started on " + host + ":" + str(port)