def __init__(self, controlpoint, mediaserver): self.controlpoint = controlpoint self.mediaserver = mediaserver Service.__init__(self, self.service_name, self.service_type, url_base='', scpd_xml_filepath=self.scpd_xml_path)
def __init__(self, controlpoint, mediaserver, proxyaddress, proxy): self.controlpoint = controlpoint self.mediaserver = mediaserver # self.destscheme = mediaserver.scheme # self.destip = mediaserver.ip self.proxyaddress = proxyaddress # self.destmusicaddress = None self.proxy = proxy self.translate = 0 self.containers = {} self.container_mappings = {} self.attribute_mappings = {} Service.__init__(self, self.service_name, self.service_type, url_base='', scpd_xml_filepath=self.scpd_xml_path)
def __init__(self): Service.__init__(self, service_name, service_type, "") varIn = StateVariable(self, "A_ARG_TYPE_Textin", True, False, "string") varIn.subscribe_for_update(self.varUpdateCallback) varOut = StateVariable(self, "A_ARG_TYPE_Textout", False, False, "string") varOut.subscribe_for_update(self.varUpdateCallback) self.add_state_variable(varIn) self.add_state_variable(varOut) argIn = Argument("TextIn", Argument.IN, varIn) argOut = Argument("TextOut", Argument.OUT, varOut) actionMyMethod = Action(self, "MyMethod", [argIn, argOut]) actionMyMethod.run_function = MyMethod self.add_action(actionMyMethod)
def __init__(self): Service.__init__(self, service_name, service_type, '') varIn = StateVariable(self, "A_ARG_TYPE_Textin", True, False, "string") varIn.subscribe_for_update(self.varUpdateCallback) varOut = StateVariable(self, "A_ARG_TYPE_Textout", False, False, "string") varOut.subscribe_for_update(self.varUpdateCallback) self.add_state_variable(varIn) self.add_state_variable(varOut) argIn = Argument("TextIn", Argument.IN, varIn) argOut = Argument("TextOut", Argument.OUT, varOut) actionMyMethod = Action(self, "MyMethod", [argIn, argOut]) actionMyMethod.run_function = MyMethod self.add_action(actionMyMethod)
def __init__(self): Service.__init__(self, self.service_name, self.service_type, url_base='', scpd_xml_filepath=self.scpd_xml_path)
def __init__(self): Service.__init__(self, service_name, service_type, url_base='', scpd_xml_filepath='MyService-scpd.xml')
def __init__(self): Service.__init__( self, service_name, service_type, "", os.path.join(abspath(dirname(__file__)), "myservice-scpd.xml") )
def __init__(self): Service.__init__(self, service_name, service_type, '', os.path.join(abspath(dirname(__file__)), 'myservice-scpd.xml'))