coherence.backends.elisa_renderer (module)

class ElisaPlayer(server, **kwargs)[source]

Bases: coherence.backend.Backend

a backend to the Elisa player

    Changed in version 0.9.0:
  • Migrated from louie/dispatcher to EventDispatcher

  • Introduced Backend’s inheritance

logCategory = 'elisa_player'
implements = ['MediaRenderer']
vendor_value_defaults = {'RenderingControl': {'A_ARG_TYPE_Channel': 'Master'}}
vendor_range_defaults = {'RenderingControl': {'Volume': {'maximum': 100}}}
call_player(method, callback, *args)[source]
poll_player()[source]
query_position()[source]
load(uri, metadata)[source]
start(uri, metadata=None)[source]
stop()[source]
play()[source]
pause()[source]
seek(location)[source]
@param location: simple number = time to seek to, in seconds

+nL = relative seek forward n seconds -nL = relative seek backwards n seconds

mute()[source]
unmute()[source]
get_mute()[source]
get_volume()[source]

playbin volume is a double from 0.0 - 10.0

set_volume(volume)[source]
upnp_init()[source]

This method gets called after the device is fired, here all initializations of service related state variables should happen, as the services aren’t available before that point.

upnp_Play(*args, **kwargs)[source]
upnp_Pause(*args, **kwargs)[source]
upnp_Stop(*args, **kwargs)[source]
upnp_SetAVTransportURI(*args, **kwargs)[source]
upnp_SetMute(*args, **kwargs)[source]
upnp_SetVolume(*args, **kwargs)[source]
main()[source]