kdeconnect-kde/plugins/mpriscontrol
Alexander Lohnau f740a8bda8 Use target-centric CMake approach for declaring debug category
This makes it easier to read, because we do not have to handle a list of
files that get added to the targets. In other KDE projects, we also
prefer the target centric approach.

In case one wants to reuse the same category in multiple places, it
would be best to create a small static lib. But for now, this is not
needed.
2023-07-22 20:51:19 +00:00
..
CMakeLists.txt Use target-centric CMake approach for declaring debug category 2023-07-22 20:51:19 +00:00
kdeconnect_mpriscontrol.json Remove explicit plugin Id 2023-07-22 20:51:19 +00:00
mpriscontrolplugin-win.cpp Remove mpris "nowPlaying" field 2023-06-08 21:58:58 +00:00
mpriscontrolplugin-win.h Provide default implementation for KdeConnectPlugin::connected 2023-07-22 16:06:21 +02:00
mpriscontrolplugin.cpp Remove mpris "nowPlaying" field 2023-06-08 21:58:58 +00:00
mpriscontrolplugin.h Provide default implementation for KdeConnectPlugin::connected 2023-07-22 16:06:21 +02:00
org.freedesktop.DBus.Properties.xml Use generated DBus interface in mpriscontrol 2020-01-20 17:36:44 +01:00
org.mpris.MediaPlayer2.Player.xml Use generated DBus interface in mpriscontrol 2020-01-20 17:36:44 +01:00
org.mpris.MediaPlayer2.xml Use generated DBus interface in mpriscontrol 2020-01-20 17:36:44 +01:00
README Move the plugins into a different top-ĺevel directory 2014-06-14 16:34:11 +02:00

This plugin controls the playback of mpris-enabled applications in this device,
commanded by its counterpart in the other device that acts as a remote control.
That means both plugins are not symmetrical.

This plugins receives and sends packages with type kdeconnect.mpris.

It keeps a list of detected players it can control via MPRIS. When it receives
a package that contains the boolean "requestPlayerList" set to true, it will
send back the list of players in an array named "playerList". If a new player is
detected or a known one dissappears, it should also send this list. Note that
players are identified only by its name (its MPRIS Identity), so there can not
be two players with the same display name.

This plugins also reports the current song, extracted from MPRIS Metadata. It
should send it when it changes or when receiving a package containing a boolean
"requestNowPlaying" set to true.

The remote devices can send packages with commands to one of the players. Those
packages will contain a string "player" with the name of the player they want to
command and a string "action" with the name of an MPRIS call (like "Play",
"Next"...).

This plugin can also control the system volume. The peer device can send a
package with "requestVolume" set to true to ask for the current volume, or send
a package with "setVolume" set to an integer in the range [0,100] to change it.