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.Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.- classmethod new(own_name, identity, desktop_entry)¶
- Parameters:
- Returns:
a new
Clapper.Mprisinstance.- Return type:
Creates a new
Clapper.Mprisinstance.Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- get_fallback_art_url()¶
-
Get fallback art URL earlier set by user.
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- get_queue_controllable()¶
- Returns:
Trueif control overClapper.Queueis allowed,Falseotherwise.- Return type:
Get whether remote
MPRISclients can control [class`Clapper`.Queue].Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- set_fallback_art_url(art_url)¶
-
Set fallback artwork to show when media does not provide one.
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- 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.
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
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.
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- Clapper.Mpris.props.fallback_art_url¶
- Name:
fallback-art-url- Type:
- Default Value:
- Flags:
Fallback artwork to show when media does not provide one.
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- Clapper.Mpris.props.identity¶
- Name:
identity- Type:
- Default Value:
- Flags:
A friendly name to identify the media player.
Example: “My Player”
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- 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”
Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.
- Clapper.Mpris.props.queue_controllable¶
- Name:
queue-controllable- Type:
- Default Value:
- Flags:
Whether remote MPRIS clients can control
Clapper.Queue.Deprecated since version 0.10: Use MPRIS from
clapper-enhancersrepo instead.