-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
Disable skip buttons in control center #314
Comments
I think, you can remove the button instead in BackgroundAudioTask, just dont add the skip button (previous or next depend on your case) when you call
|
That only works for Android, on iOS the skip button stays and are not greyed out even if the list returned by getControls(state) doesn't include skipToPreviousControl and skipToNextControl. |
anyway to disable previous and next butons on iOS? Makes sense when youre streaming audio |
The iOS implementation has been somewhat of a collaborative effort so far, and so pull requests are always welcome. My first implementation got the basics working, and then more support has been added over time through the contributions of many people. My suggestion for anyone who wants to have a go at making a PR is to look at the open PR for Swift which I believe respects the Eventually, I'd like to continue work on the Swift implementation, but for now probably the quickest approach would be to make a minor change to the current Objective C implementation to implement this, perhaps using the Swift PR as a reference to get a general idea of how to do it. |
I have just implemented this on git master. I have also updated the documentation of Please let me know how how it goes. |
I should clarify that while you can't "disable" the buttons, you can now choose which ones should appear in different states, for both Android and iOS. |
This is now released in 0.12.0 so I'll close this issue. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
Is your feature request related to a problem? Please describe.
On iOS and Android the skip buttons are not disabled (greyed out) if there's only one item in the queue or if you are playing an item at either end of the queue.
Describe the solution you'd like
It would be great if the skip buttons were greyed out if there's only one item in the queue or if you are playing an item at either end of the queue.
Describe alternatives you've considered
On Android it's possible to remove the skip buttons if you are only playing one item, but on iOS I can't see an option to disable the skip button in the control center.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: