Coverage for coherence/upnp/services/clients/rendering_control_client.py : 31%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php
# Copyright 2006, Frank Scholz <coherence@beebits.net>
self.service = service self.namespace = service.get_type() self.url = service.get_control_url() self.service.subscribe() self.service.client = self # print "RenderingControlClient __init__", self.url
# def __del__(self): # #print "RenderingControlClient deleted" # pass
self.service.remove() self.service = None self.namespace = None self.url = None del self
self.service.subscribe_for_variable(var_name, instance=0, callback=callback, signal=signal)
action = self.service.get_action('ListPresets') return action.call(InstanceID=instance_id)
action = self.service.get_action('SelectPresets') return action.call(InstanceID=instance_id, PresetName=preset_name)
action = self.service.get_action('GetMute') return action.call(InstanceID=instance_id, Channel=channel)
action = self.service.get_action('SetMute') return action.call(InstanceID=instance_id, Channel=channel, DesiredMute=desired_mute)
action = self.service.get_action('GetVolume') return action.call(InstanceID=instance_id, Channel=channel)
action = self.service.get_action('SetVolume') return action.call(InstanceID=instance_id, Channel=channel, DesiredVolume=desired_volume)
action = self.service.get_action('GetVolumeDB') return action.call(InstanceID=instance_id, Channel=channel)
action = self.service.get_action('SetVolumeDB') return action.call(InstanceID=instance_id, Channel=channel, DesiredVolume=desired_volume)
action = self.service.get_action('GetVolumeDBRange') return action.call(InstanceID=instance_id, Channel=channel)
action = self.service.get_action('GetLoudness') return action.call(InstanceID=instance_id, Channel=channel)
channel='Master', desired_loudness=0): action = self.service.get_action('SetLoudness') return action.call(InstanceID=instance_id, Channel=channel, DesiredLoudness=desired_loudness) |