1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-13 08:54:03 +02:00
Gadgetbridge/app
Steffen Liebergeld fb71cdf55b Add handling for media session notifications
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).
2016-06-08 20:41:43 +02:00
..
src Add handling for media session notifications 2016-06-08 20:41:43 +02:00
build.gradle update changelog, bump version to 0.10.0 2016-05-29 20:47:16 +02:00
proguard-rules.pro First checkin of actual code 2015-01-07 14:00:18 +01:00