Dmap.ControlShare¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w  | 
Library name as will be shown in the Remote  | 
||
r/w/co  | 
Player  | 
Signals¶
- Inherited:
 
Name  | 
Short Description  | 
|---|---|
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
dmap_av_share_instance  | 
r  | 
Class Details¶
- class Dmap.ControlShare(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
- classmethod new(library_name, player, db, container_db)¶
 - Parameters:
 library_name (
str) – The library name that will be shown in the remote.player (
Dmap.ControlPlayer) – ADmap.ControlPlayerinstance, used to retrieve information from a player implementation.db (
Dmap.Db) – a media database represented by aDmap.Dbinstance.container_db (
Dmap.ContainerDb) – a container (album) database represented by aDmap.ContainerDbinstance.
- Returns:
 a pointer to a
Dmap.ControlShare.- Return type:
 
Creates a new DACP share and publishes it using mDNS.
- pair(service_name, passcode)¶
 - Parameters:
 
Pairs a DACP client (Remote) with this server. If the passcode is correct (the same as shown on the remote), the remote will start connecting to this server.
- player_updated()¶
 
- start_lookup()¶
 - Raises:
 - Returns:
 - Return type:
 
Start looking up for DACP remotes. Connect to
Dmap.ControlShare::remote-foundsignal to detect new remotes. Be aware that when aDmap.ControlShareis created, only after calling this function is that it starts looking up for Remotes on the network.
- stop_lookup()¶
 - Raises:
 - Return type:
 
Stop looking up for DACP remotes.
- do_remote_found(service_name, remote_name) virtual¶
 
Signal Details¶
- Dmap.ControlShare.signals.add_guid(control_share, object)¶
 - Signal Name:
 add-guid- Flags:
 - Parameters:
 control_share (
Dmap.ControlShare) – The object which received the signalobject (
str) –
- Dmap.ControlShare.signals.lookup_guid(control_share, object)¶
 - Signal Name:
 lookup-guid- Flags:
 - Parameters:
 control_share (
Dmap.ControlShare) – The object which received the signalobject (
str) –
- Return type:
 
- Dmap.ControlShare.signals.remote_found(control_share, object, p0)¶
 - Signal Name:
 remote-found- Flags:
 - Parameters:
 control_share (
Dmap.ControlShare) – The object which received the signalobject (
str) –p0 (
str) –
- Dmap.ControlShare.signals.remote_lost(control_share, object)¶
 - Signal Name:
 remote-lost- Flags:
 - Parameters:
 control_share (
Dmap.ControlShare) – The object which received the signalobject (
str) –
- Dmap.ControlShare.signals.remote_paired(control_share, object, p0)¶
 - Signal Name:
 remote-paired- Flags:
 - Parameters:
 control_share (
Dmap.ControlShare) – The object which received the signalobject (
str) –p0 (
bool) –
Property Details¶
- Dmap.ControlShare.props.library_name¶
 - 
Library name as will be shown in the Remote
 
- Dmap.ControlShare.props.player¶
 - Name:
 player- Type:
 - Default Value:
 - Flags:
 
Player