MediaServer: Gallery
Gallery MediaServer
Gallery is an open source web based photo album organizer. The backend retrieves that data via a slightly modified galleryremote module and processes it for use by other UPnP clients.
UPnP ContentDirectory structure
The returned media data from the gallery server is represented in this structure:
- Gallery
- folder 1
- folder 3
- folder 2
- image A
- image B
- ...
- folder 1
resembling the folder structure on the gallery server.
Configuration
The Gallery backend accepts these options:
- server_url
- the uri of the gallery server remote access interface
- username
- the username needed to get access to the gallery server (optional)
- password
- the corresponding password (optional)
- name:
- the name this backend should show up on your UPnP clients, defaults to Gallery
- version
- instruct this backend to act as a UPnP A/V version 1 or version 2 MediaServer]
Examples
New config file:
<plugin> <backend>Gallery2Store</backend> <name>Gallery</name> <server_url>http://site/</server_url> </plugin>
Old config file:
[[Gallery2Store]]
name = Gallery
server_url = http://site/
Python code:
coherence.add_plugin('Gallery2Store', name='Gallery',server_url='http://site/')
DBus:
coherence_service = dbus.SessionBus().get_object('org.Coherence','/org/Coherence') coherence_service.add_plugin('Gallery2Store', {'name':'Gallery', 'server_url':'http://site/'}, dbus_interface='org.Coherence', reply_handler=add_plugin_callback, error_handler=error_callback)
Commandline:
coherence --plugin=backend:Gallery2Store,server_url:http://site/
Specifying options for Coherence on the commandline is supported with Coherence versions >= 0.5.7.
