Summary: BUG: 337485 Adds a notification to show and control mpris players. It shows the title, artist etc. (so depends on D9083, but can easily be adapted to work without it, but that leads to less features). The notification appears as soon as one of your connected devices plays music. If multiple devices/players are playing, it shows the information and controls for only one of these. If it stops playing, it tries to switch to another playing device/player. If those do not exist, it shows the same player, but allows starting it again. Dismissing the notification is only possible if the showed player is paused (as effect, only when all players are paused). It automatically closes if the device or player disappears or disconnects and no other players are playing. I think this behaviour is intuitive, other native android music players have similar behaviour. About the implementation: there are two parts to this: the notification and the media session control API. The first shows the notification and its controls. The second allows lock screen controls on older Android versions and control using e.g. headphone buttons. Since nearly all code is shared between the two parts, and the rest is mostly straightforward, I put them in the same diff. Test Plan: Tested on Android Nougat 7.1 (shows the notification with buttons, as expected; no lock screen controls, as expected) and Android Gingerbread 2.3 (shows a notification without buttons, lock screen controls work, so as expected). I am not able to test with multiple desktops, so testing that would be appreciated. Disabling buttons when not available should work, but all players I tested always allowed next/previous/play/pause. Reviewers: #kde_connect, nicolasfella Reviewed By: #kde_connect, nicolasfella Subscribers: apol, albertvaka, nicolasfella Tags: #kde_connect Maniphest Tasks: T6512 Differential Revision: https://phabricator.kde.org/D9266
KDE Connect - Android app
KDE Connect is a multi-platform app that allows your devices to communicate (eg: your phone and your computer).
(Some) Features
- Shared clipboard: copy and paste between your phone and your computer (or any other device).
- Notification sync: Read and reply to your Android notifications from the desktop.
- Share files and URLs instantly from one device to another.
- Multimedia remote control: Use your phone as a remote for Linux media players.
- Virtual touchpad: Use your phone screen as your computer's touchpad and keyboard.
All this without wires, over the already existing WiFi network, and using TLS encryption.
About this app
This is a native Android port of the KDE Connect Qt app. You will find a more complete readme about KDE Connect here.
How to install this app
You can install this app from the Play Store as well as F-Droid. Note you will also need to install the desktop app for it to work.
Contributing
To contribute patches, use KDE Connect's Phabricator. There you can also find a task list with stuff to do, and links to other relevant resources. It is a good idea to also subscribe to the KDE Connect mailing list.
License
GNU GPL v2 and GNU GPL v3
If you are reading this from Github, you should know that this is just a mirror of the KDE Project repo.