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
AudioPlayer blocks UI on Andorid #7
Comments
Thanks for pointing it out, @the4thfloor ! Duly noted! Indeed this needs to be fixed in the pursuit of a better user experience for audioplayers (and flame games). I'm guessing just popping a new Thread and calling Would you like to submit a PR? |
I created a PR (#8) |
…dorid #7 audio player blocks ui on andorid
Released on |
The call to prepare() can take a long time to execute, because it might involve fetching and decoding media data. So, as is the case with any method that may take long to execute, you should never call it from your application's UI thread.
https://developer.android.com/guide/topics/media/mediaplayer.html#preparingasync
The text was updated successfully, but these errors were encountered: