Coverage for coherence/upnp/services/clients/av_transport_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-2008, Frank Scholz <coherence@beebits.net>
log.LogAble.__init__(self) self.service = service self.namespace = service.get_type() self.url = service.get_control_url() self.service.subscribe() self.service.client = self
# def __del__(self): # #print "AVTransportClient 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)
current_uri_metadata=''): action = self.service.get_action('SetAVTransportURI') return action.call(InstanceID=instance_id, CurrentURI=current_uri, CurrentURIMetaData=current_uri_metadata)
next_uri_metadata=''): action = self.service.get_action('SetNextAVTransportURI') if action: # optional return action.call(InstanceID=instance_id, NextURI=next_uri, NextURIMetaData=next_uri_metadata) return None
action = self.service.get_action('GetMediaInfo') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetMediaInfo_Ext') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetTransportInfo') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetPositionInfo') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetDeviceCapabilities') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetTransportSettings') return action.call(InstanceID=instance_id)
action = self.service.get_action('Pause') if action: # optional return action.call(InstanceID=instance_id) return None
action = self.service.get_action('Play') return action.call(InstanceID=instance_id, Speed=speed)
action = self.service.get_action('Stop') return action.call(InstanceID=instance_id)
action = self.service.get_action('Record') if action: # optional return action.call(InstanceID=instance_id) return None
action = self.service.get_action('Seek') return action.call(InstanceID=instance_id, Unit=unit, Target=target)
action = self.service.get_action('Next') return action.call(InstanceID=instance_id)
action = self.service.get_action('Previous') return action.call(InstanceID=instance_id)
action = self.service.get_action('GetCurrentTransportActions') return action.call(InstanceID=instance_id) |