OxygenCobalt / Auxio

A simple, rational music player for android
GNU General Public License v3.0
1.86k stars 122 forks source link

Stepping functionality (ex. Skipping 5 seconds) #281

Open Maha-Rajan opened 1 year ago

Maha-Rajan commented 1 year ago

Describe the feature you want to implement:

I would like to have either a 10s or 15s skip forward or backward of the audio track by pressing twice on the left and right side of the album art

Is your feature request related to a problem? Please describe:

The seekbar does a good job of moving between the audio track but a more granular help would be appreciated #### Do other music players handle this? If so, how?

YouTube music and other music streaming services have implemented them.

Why do you think this will improve everyone's usage of Auxio?

It will enhance the usability of auxio and you don't need to add extra ui to the app. The functions can be just a hidden double click on the album art

Due Diligence:

OxygenCobalt commented 1 year ago

I was thinking of doing something like this, but the UI integration is somewhat hard. Adding more buttons is dumb, and while the album art idea kind-of works, it conflicts with #94.

I could see accepting this by overloading the skip buttons with this functionality. If you long-held on skip next for example, it would begin skipping in +5 second intervals until you stopped pressing it. This is a good compromise I think.

Maha-Rajan commented 1 year ago

YouTube music has both swipe left or right to skip between tracks and also double clicking left or right on the album art for seeking 10s... May be try out the YouTube music app to see how the functionality works and you could think of a way to implement it in your own way in auxio...

I personally think both could be implemented as how yt music does as it already feels natural and clutter free..

Maha-Rajan commented 1 year ago

Screenshotsscreen-20221117-095952_exported_7145.jpg

screen-20221117-095952_exported_11302.jpg

screen-20221117-095952_exported_13479.jpg

OxygenCobalt commented 1 year ago

Good point, I was just looking at it from a technical difficulty perspective. I'll see what happens when I work on it.

Maha-Rajan commented 1 year ago

Take your time.. this is my favourite offline music app so far.. I hope it grows more and more...

KeronCyst commented 1 year ago

Has this been added yet? This would be so helpful for me!

OxygenCobalt commented 1 year ago

No @KeronCyst, I want to do this alongside #94, but there are some very high-priority things I need to do first.

ghostelephant commented 10 months ago

I have a thought/suggestion that's related to this topic (but if it would be better as its own separate issue, let me know and I can submit it; or, if you think it's a bad idea, also let me know and I can drop it):

What about adding "seek forward x seconds" and "seek backward x seconds" as other options for the Custom Notification Action button? It's definitely a less robust solution to time-skipping functionality than the one discussed here, but I'm guessing that would probably also make it easier to implement.

I can't speak for others, but I at least am unlikely to ever use either the Shuffle or Repeat buttons from the notification, but would absolutely use a "back 10 seconds" button there.

OxygenCobalt commented 10 months ago

And only having one step button at a time would work well for you @ghostelephant? If that's the case, it's possible, but I'd want to implement it such that the "step" button is in the more logical place (i.e step back is next to skip back, step forward is next to skip forward).