Skip to content
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

Downloaded mp3 file was converted to mpeg file #140

Closed
somaria opened this issue Feb 10, 2020 · 3 comments
Closed

Downloaded mp3 file was converted to mpeg file #140

somaria opened this issue Feb 10, 2020 · 3 comments

Comments

@somaria
Copy link

somaria commented Feb 10, 2020

Hi,

I have used Flutter Cache Manager to download some mp3 files but the files were converted to mpeg.

It seems that in iOS, you can't play an mpeg file.

Anyone has any suggestion on what I can do? Any suggestions would be greatly appreciated.

@suragch
Copy link

suragch commented Mar 15, 2020

Do you have access to the backend? I think I was getting this problem but then solved it by changing the content type of the response to audio/mp3 instead of audio/mpeg. If you don't have access to the backend then I would try just renaming the file to have an extension of .mp3.

@Skuallpa
Copy link

I'm also facing the same issue. I'm trying to cache some mp3 files but they get renamed with .mpeg extension.

Is it possible to rename the files in the cache ?

@renefloor
Copy link
Contributor

This PR fixes this, but I don't know when I'll make a new release yet: https://github.com/Baseflow/flutter_cache_manager/pull/150/files#diff-905135c7c1aed5fab30a695cfc2aaf38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants