-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Skip ahead/back Button #399
Comments
I can take this, if assigned to me 😄 |
Sure, go ahead! It would be nice if you could add a setting to choose which buttons are shown, just like extremelyonline suggested :) |
@Chaphasilor / @jmshrv could you point me to see the notification widget? I am kind of lost in this huge project 😓 |
@Guillergood try starting here: https://github.com/jmshrv/finamp/blob/main/lib/services/music_player_background_task.dart#L604-L609 Otherwise, check out the documentation for |
@Chaphasilor Can I work on this issue |
@vijayabhaskar78 sure, go ahead. You should make the buttons configurable (shown or hidden) in the settings, with the default being hidden. Feel free to open a draft PR if you're stuck! |
@Chaphasilor Here's a brief overview of the planned changes with some sample code:
class FinampSettings { enum SkipButtonVisibility {
Future skipAhead(Duration duration) async {
PlaybackState _transformEvent(PlaybackEvent event) {
bool shouldShowSkipButtons(MediaItem mediaItem) { I'll be submitting a pull request soon with these changes. Let me know if you'd like to discuss any aspects of the implementation before I proceed. |
Hey, that looks mostly good, nice!
It's probably best to just open a draft request and ask any remaining questions there, so that we can actually try things out and see if there's anything missing :) |
@Chaphasilor Please check my pull request #932 |
On the (Android) lock screen/media interface, it would be great if there are buttons to skip ahead and back 15/30 seconds.
This would be very helpful for podcast listening. Perhaps there could be an option to let users decide between "next/previous tracks" mode and "skip ahead/back" mode?
The text was updated successfully, but these errors were encountered: