MPRIS (media)#
- class ignis.services.mpris.MprisService(*args: Any, **kwargs: Any)#
A service for controlling media players using the MPRIS interface.
Example usage:
from ignis.services.mpris import MprisService mpris = MprisService.get_default() mpris.connect("player_added", lambda x, player: print(player.desktop_entry, player.title))
- player_added(*args)#
Signal
Emitted when a player has been added.
- Parameters:
player (
MprisPlayer
) -- The instance of the player.
- property players: list[MprisPlayer]#
read-only
A list of currently active players.
- class ignis.services.mpris.MprisPlayer(name: str)#
A media player object.
- closed()#
Signal
Emitted when a player has been closed or removed.
- property can_seek: bool#
read-only
Whether the player can seek (change position on track in seconds).