# Class e.p.c.u.UPnPMediaServer(pb.Referenceable, service_provider.ServiceProvider):

Part of elisa.plugins.coherence.upnp_media_server View In Hierarchy

Provides UPnP clients access to UPnP resources

Line # | Kind | Name | Docs
--- | --- | --- | ---
199 | Method | __init__ | Undocumented
209 | Method | initialize | Initialize the component.
233 | Method | clean | Clean the component.
238 | Method | add_media_location | Undocumented
250 | Method | remove_media_location | Undocumented
257 | Method | enable_coherence | Undocumented
438 | Method | remote_get_media_root_id | Undocumented
448 | Method | remote_get_media_node_with_id | Returns a dict with following keys:

Inherited from ServiceProvider:

Line # | Kind | Name | Docs
--- | --- | --- | ---
31 | Method | start | Start the service.
38 | Method | stop | Stop the service.

Inherited from Component (via ServiceProvider):

Line # | Kind | Name | Docs
--- | --- | --- | ---
85 | Class | PathDescriptor | Undocumented
97 | Class Method | create | Create and initialize the component.

def __init__(self):
overrides elisa.core.log.Loggable.__init__
Undocumented
def initialize(self):
overrides elisa.core.component.Component.initialize

Initialize the component.

This method is called by `Component.create` to finish the initialization of a component.

Returns | a deferred called when a component is fully initialized (type: `twisted.internet.defer.Deferred` )

def clean(self):
overrides elisa.core.component.Component.clean

Clean the component.

This method is called when a component is not needed anymore to clean its state.

Returns | a deferred called when the component has finished cleaning its state (type: `twisted.internet.defer.Deferred` )

def add_media_location(self, location):
Undocumented
def remove_media_location(self, location):
Undocumented
def enable_coherence(self, host, port):
Undocumented
def remote_get_media_root_id(self, media_type):
Undocumented
def remote_get_media_node_with_id(self, container_id):
Returns a dict with following keys: id = id in the media db parent_id = parent_id in the media db name = title, album name or basename mimetype = 'directory' or real mimetype size = in bytes (??) children = list of objects for which this item is the parent location = filesystem path if item is a file