mastodon / mastodon-android

Official Android app for Mastodon
https://app.joinmastodon.org/android
GNU General Public License v3.0
1.72k stars 264 forks source link

Add audio controls for background playback #727

Open realpixelcode opened 1 year ago

realpixelcode commented 1 year ago
  1. Come across a post with audio attached.
  2. Start playback.
  3. Scroll away, read other posts, switch timelines: Mastodon continues playing the audio, and you cannot stop it without manually going all the way back to the original place where you initially found the audio.

There are a couple different solutions to this:

  1. Automatically stop the playback when the user leaves the post. Better UX than currently, but still not good. Trivial to implement.

  2. Similarly to WhatsApp, Signal, Telegram etc., provide a small one-line audio control popup fixed to the top of the screen. Fantastic UX, but implementation would take time, as it would affect the UI.

  3. Create a notification that provides audio controls, similarly to music apps. Good UX, implementation shouldn't take too long, as it wouldn't affect the UI.

Screenshot-2023-11-01-09-08-14.png.png

threema-20231101-091212372.png

grishka commented 1 year ago

Why are you asking me to add something that has already existed for as long as the app supported playing audio? Screenshot_20231101-122749.png

realpixelcode commented 1 year ago

Seems like Android 12 hides it by default if there are other notifications. How about the in-app popup?

grishka commented 1 year ago

It shouldn't. Only if you haven't allowed notifications, or if you've turned off that particular notification channel.

How about the in-app popup?

This is a UI change to the app itself and I'm not the person who makes such decisions.