Clapper.Mpris¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co/en |
|||
r/w/en |
|||
r/w/co/en |
|||
r/w/co/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Clapper.Mpris(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An optional
MPRISfeature to add to the player.Not every OS supports
MPRIS. Use [const`Clapper`.HAVE_MPRIS] macro to check if Clapper API was compiled with this feature.- classmethod new(own_name, identity, desktop_entry)¶
- Parameters:
- Returns:
a new
Clapper.Mprisinstance.- Return type:
Creates a new
Clapper.Mprisinstance.
- get_fallback_art_url()¶
-
Get fallback art URL earlier set by user.
- get_queue_controllable()¶
- Returns:
Trueif control overClapper.Queueis allowed,Falseotherwise.- Return type:
Get whether remote
MPRISclients can control [class`Clapper`.Queue].
- set_fallback_art_url(art_url)¶
-
Set fallback artwork to show when media does not provide one.
- set_queue_controllable(controllable)¶
- Parameters:
controllable (
bool) – ifClapper.Queueshould be controllable
Set whether remote MPRIS clients can control
Clapper.Queue.This includes ability to open new URIs, adding/removing items from the queue and selecting current item for playback remotely using MPRIS interface.
You probably want to keep this disabled if your application is supposed to manage what is played now and not MPRIS client.
Property Details¶
- Clapper.Mpris.props.desktop_entry¶
- Name:
desktop-entry- Type:
- Default Value:
- Flags:
The basename of an installed .desktop file with the “.desktop” extension stripped.
- Clapper.Mpris.props.fallback_art_url¶
- Name:
fallback-art-url- Type:
- Default Value:
- Flags:
Fallback artwork to show when media does not provide one.
- Clapper.Mpris.props.identity¶
- Name:
identity- Type:
- Default Value:
- Flags:
A friendly name to identify the media player.
Example: “My Player”
- Clapper.Mpris.props.own_name¶
- Name:
own-name- Type:
- Default Value:
- Flags:
DBus name to own on connection.
Must be written as a reverse DNS format starting with “org.mpris.MediaPlayer2.” prefix. Each
Clapper.Mprisinstance running on the same system must have an unique name.Example: “org.mpris.MediaPlayer2.MyPlayer.instance123”
- Clapper.Mpris.props.queue_controllable¶
- Name:
queue-controllable- Type:
- Default Value:
- Flags:
Whether remote MPRIS clients can control
Clapper.Queue.