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] Ability to change OS shade's play/pause/stopped state at any time #14
Comments
I'm not quite certain I understand the problem. As I understand it: So this fact that the shade doesn't show the pause state does make sense to me as I would expect the shade to even notice that its playing silence (whilst it could detect it I wouldn't expect it to). Can you send a small sample app so I can try and reproduce it. I'm slightly hesitant to suggest this as its largely untested, but the Album is designed to allow you to schedule multiple Tracks on a shade. It might be worth giving it a try. Perhaps an explanation on what you are trying to achieve might help. |
Yeah, sorry, I know this is a bit tough to explain - hopefully the below clarifies, and I've attached a screen recording of this feature as well (although it's a little confusing since sometimes I pause right at the tail end of the audio before the audio has actually ended but is silent for 500ms or so before the audio is actually stopped and the blank space hits). The use case goes like so:
This feature is specifically for language training (so file 1 would be a foreign language "Mi nombre es John", blank space for a user to come up with the translation, and then the translation comes up in English "My name is John"). I know it may not even be possible with the native media players and it might just be something that needs a weird "hacky" solution for (such as the playing of a blank file and pausing it). But figured it's worth bringing up in case there's an elegant solution. |
Hi @japhiaolson I am currently working on an App to learn Korean. I had exactly the same need than you. After many failed tries, I decided to play a blank file between two sentences so that Apple is happy (and when Apple is happy, I am happy too ;-) ). In my own App, I wanted that the Track information of the previous sentences was displayed during the pause, but In flutter_sound I added some API verbs for managing the lock screen between two playbacks, and it works fine. |
So this is definitely an enhancement.
|
@Larpoux hey, yeah sounds like we've been having the same issues. I'll probably end up doing something similar for now with Sounds (I'm launching the app on Android first, iOS is not a priority atm). @bsutton yeah that makes sense, thanks for looking into it, definitely understand if it's not a high priority for now. |
Closing as I don't see this being implemented as it's a niche use. |
Is your feature request related to a problem? Please describe.
My use case as an example is playing a playlist, with each "track" consisting of several files with blank space between each file and the user can pause the "playlist" at any point (when the files are actively playing or when the files have naturally stopped and they are in the blank/delay between sound files playing).
The shade can't accurately show that the user paused the playlist unless the user happened to hit pause in the midst of an actual sound playing. Everything seems to work really well as far as functionality of the player/events propagating from the shade/etc. it's just the visual state of the shade needs to be able to be updated to accurately show what the user would expect in a scenario like this.
Describe the solution you'd like
Ability to change state of play/pause/stopped OS shade's UI separately from the actual state of sound files.
Describe alternatives you've considered
The only alternative I've found is triggering a small/blank sound to play if no sound is playing when they hit pause, so it triggers "play" and then immediately triggers "pause" which makes the shade show the correct state.
The text was updated successfully, but these errors were encountered: