-
-
Notifications
You must be signed in to change notification settings - Fork 694
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
[Android] seeking causes the player to play on with no sound but SeekBar still running #1124
Comments
I played your video but it doesn't sound like the example in just_audio. That is, you didn't actually provide me a way to reproduce this. It's likely related to the specific audio file you were playing. |
Just checking but I assume you have read the trouble shooting section in the readme and this is something that is not already addressed there? |
I have read "Audio file formats/encodings" but don't find the way to address with this issue. I play audio from url source so can not convert to MP3 format |
I asked if you had read the entire troubleshooting section, in which there is more covered than just file formats/encodings. |
I had read it again and still don't know where to address with this. I think it relate to this issue #1084 |
After you have read the troubleshooting, maybe you can share the relevant details regarding the file format and the server headers? |
I use audio with info
I upload to dropbox server with response headers
|
Thank you. Since you are the one who uploaded the file to the server, can you explain why you couldn't upload it in a different format? |
Because in my app user can play any audio from their device |
I have just tested the example after changing the URL to the one provided, but could not reproduce the issue. After seeking, it shows the buffering spinner exactly up until the audio starts playing again. I don't know if that means it is a device specific behaviour, do you see this behaviour on other phones or just this one? |
I tested on 3 devices and same error when seek to time seekbar running about 1-2s with no sound
I can add this code to test seek function
|
I had try to add this code to seek function AudioPlayer.java
|
Regarding workarounds, you might also want to experiment with the buffering options. If all of your audio files are short like the one you linked to above, you could try to keep the whole file buffered in memory so that the buffering event that triggers this issue never happens. |
Tks @ryanheise your your help. I will find some way to convert to another format it just happened in some url so I 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 just_audio. |
Which API doesn't behave as documented, and how does it misbehave?
When seek to specific time, seekbar still running with no sound
Minimal reproduction project
Provide a link here using one of two options:
To Reproduce (i.e. user steps, not code)
Steps to reproduce the behavior:
Error messages
Expected behavior
Audio play immediately or show loading state when audio not playing until it actually play
Screenshots
7221666720455445413.mp4
Smartphone (please complete the following information):
Flutter SDK version
The text was updated successfully, but these errors were encountered: