22be63ae9e
In theory we support Qt 5.6 (because of SailfishOS) but in practice we are not checking that in the CI so probably we broke the compatibility long ago. Also, I don't think anyone is using this code in SailfishOS, so we can greatly simplify the code by requiring Qt 5.15 or later. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
kdeconnect_pausemusic.json | ||
kdeconnect_pausemusic_config.qml | ||
org.mpris.MediaPlayer2.Player.xml | ||
pausemusic_config.cpp | ||
pausemusic_config.h | ||
pausemusic_config.ui | ||
pausemusicplugin-win.cpp | ||
pausemusicplugin-win.h | ||
pausemusicplugin.cpp | ||
pausemusicplugin.h | ||
README |
This simple plugin will just listen to "kdeconnect.telephony" like the telephony plugin does. It reads the field "event", to see if it is "ringing" or "talking" and then pauses all the music/video players reachable through MPRIS. When the same kind of package is received but the boolean "isCancel" is set to true, it will resume the playback of all the paused sources.