soco.plugins.example module

Example implementation of a plugin.

class soco.plugins.example.ExamplePlugin(soco, username)[source]

This file serves as an example of a SoCo plugin.

Initialize the plugin.

The plugin can accept any arguments it requires. It should at least accept a soco instance which it passes on to the base class when calling super’s __init__.


human-readable name of the plugin


Play some music.

This is just a reimplementation of the ordinary play function, to show how we can use the general upnp methods from soco


Stop the music.

This methods shows how, if we need it, we can use the soco functionality from inside the plugins