'Starts a BPD server.'

def start_bpd(self, lib, host, port, password, volume, debug):

    if debug:
        self._log.setLevel(logging.DEBUG)
    else:
        self._log.setLevel(logging.WARNING)
    try:
        server = Server(lib, host, port, password)
        server.cmd_setvol(None, volume)
        server.run()
    except NoGstreamerError:
        global_log.error(u'Gstreamer    Python    bindings    not    found.')
        global_log.error(u'Install    "gstreamer1.0"    and    "python-gi"or    similar    package    to    use    BPD.')
