コード例 #1
0
ファイル: bridge.py プロジェクト: fredrikaubert/airpnp
 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) 
コード例 #2
0
 def __del__(self):
     self.totem.action_stop()
     AirPlayService.__del__(self)
コード例 #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)
コード例 #4
0
	def __del__(self):
		self.totem.action_stop()
		AirPlayService.__del__(self)
コード例 #5
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)
コード例 #6
0
ファイル: airplay.py プロジェクト: ryatkins/videoAirPi
 def __del__(self):
     self.videoAirPlay.action_stop()
     AirPlayService.__del__(self)
コード例 #7
0
ファイル: airplay.py プロジェクト: ryatkins/videoAirPi
 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)