-
Notifications
You must be signed in to change notification settings - Fork 856
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
Trying to play multiple audio files one by one with one audio player object. But if I don't initalize it again before playing it gives this error #1174
Comments
If i initalize it again then I can't access it onChange methods in bloc. Because of that I can't access total time and it's remaining time. |
Can you reproduce it with the example or do you have some sample project? What are the exact steps to reproduce? Also use the issue template! |
I'm also getting this error. Although, I'm only playing one file at a time. I execute audioplayer.stop then execute .play for another file after that. The thing is it doesn't happen always, most of the time there's no problem but sometimes I get this error, and of course there's no audio playing. My code is like this: This part executes on next/prev button:
I pull audioUrl via cachemanager that's why there's an await on audioUrl.
|
Can you test with current main branch in pubspec.yaml?
|
found out the problem was mine. On the flutter discord server Xazin helped me to solve the problem. I was stopping playback and starting another one immediately after. But it seems stop takes time and had to wait for it.. So |
This issue was closed by the stale bot due to inactivity. |
The text was updated successfully, but these errors were encountered: