mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-25 11:26:47 +01:00
fb71cdf55b
Since Android 5.0, media players can have interactive notifications that reside in the notification area, and offer up to 5 control buttons (play/pause, next, previous, etc), and information about the currentlu playing media file. We use these notifications to get information about the currently playing media file such as: - artist - track (title) - album - duration (length of the media file) - play state (playing, paused, stopped) - position - play rate (how fast is the media file being played) We then send this information up to the device. On Pebble, the music app will display the title and the artist, as well as a progress bar showing the current position. The progress bar is animated when the media file is being played, and if it is being paused, it displays a pause symbol. This code will be skipped when GadgetBridge is run on a device with Android version older than 5.0 (lollipop). |
||
---|---|---|
.. | ||
src | ||
build.gradle | ||
proguard-rules.pro |