Closed zhushenwudi closed 2 years ago
Does your FLAC file have an accurate seek table?
Does your FLAC file have an accurate seek table?
no, it converted by wav
but other player can seek correct, i don't understand why need the seek table
This is the behaviour of iOS's framework player. Maybe you're making it difficult for yourself if you want to do seeking, but you also don't use a format that is designed for seeking. The purpose of a seek table is to support accurate seeking.
Yes, flac has a smaller footprint, and the PC side uses the same FLAC format. So I give priority to this format
Why not add a seek table to the FLAC file so that you can accurately seek?
So other music players don't use AvAudioPlayer, but use lower-level classes to achieve this effect? At present, I don't quite understand this part of the knowledge, I will search online, or you have any experience. What channels are available to get the seek table.
So other music players don't use AvAudioPlayer, but use lower-level classes to achieve this effect?
That may be the case.
As for the seek table, I can't advise on what tools you can use for your OS, but Google may help.
Ok, I think I get it, 3Q
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? just_audio api 0.9.21 when flac format music use seek method to the end, it will play uncorrect position When the progress bar shows that the audio is playing at the end, it is not finished yet and will continue for some time, positionstream is also return back error. even the playback time exceeds the total time
Minimal reproduction project Provide a link here using one of two options: https://github.com/zhushenwudi/just_audio_seek_demo
To Reproduce (i.e. user steps, not code) Steps to reproduce the behavior:
Error messages
Expected behavior Use other player to play and seek are normal The audio playback exceeds the total audio duration when seek to end
Screenshots no screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Flutter SDK version
Additional context Add any other context about the problem here. no