mpris2.utils module

utils functions not defined in espec

mpris2.utils.get_mainloop()[source]
mpris2.utils.get_player_id_from_uri(uri)[source]

Returns player mpris2 id from uri @param uri: string mpris2 player dbus uri @return: string mrpis2 id

mpris2.utils.get_players_id(pattern=None)[source]

Return string of player mpris2 id @param pattern=None: string RegEx that filter response @return: array string of players bus name

mpris2.utils.get_players_uri(pattern='.')[source]

Return string of player bus name @param pattern=None: string RegEx that filter response @return: array string of players bus name

mpris2.utils.get_session()[source]

@return: dbus.SessionBus.get_session()

mpris2.utils.implements(uri, interface, path='/org/mpris/MediaPlayer2', bus=None)[source]
mpris2.utils.list_interfaces(uri, path=None, bus=None)[source]