ryanheise / just_waveform

A Flutter plugin to extract waveform data from an audio file suitable for visual rendering.
MIT License
86 stars 17 forks source link

large mp3 file size error #8

Closed putheng closed 2 years ago

putheng commented 2 years ago

When I try to load an mp3 file around 3mb it returns the error PlatformException(ExtAudioOpenURL error, ExtAudioOpenURL error, null, null)

Have you tested with any max large files?

ryanheise commented 2 years ago

I'm not sure if that's due to the size of the file or the format of the file or the permissions of the file. Can you provide a minimal reproduction project?

putheng commented 2 years ago

Hi @ryanheise , The problem is format of the file. Thank you for your package, by the way, did you plan to implement cache? because for now, it has to extract every time we play that mp3 file and some large files it a bit take time to extract.

ryanheise commented 2 years ago

There is no need for this package to implement a cache since it is intended to focus on just the one responsibility of extracting the waveform, (hence the naming "just"). An app can choose the cache the result if it wants.

ryanheise commented 2 years ago

Are you happy to close the issue?