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

Local file coverUrl not working on Android #52

Closed
maciogg opened this issue Nov 12, 2020 · 4 comments
Closed

Local file coverUrl not working on Android #52

maciogg opened this issue Nov 12, 2020 · 4 comments

Comments

@maciogg
Copy link

maciogg commented Nov 12, 2020

Hi
On Android coverUrl not working.
I got exception
V/AudioManagerPlugin(17668): 播放错误:java.io.FileNotFoundException: file:///data/user/0/com.blizejprzedszkola.app.mojaplytoteka/app_flutter/covers/17_cover.jpg
and
I/flutter (17668): AudioManagerEvents.error, java.io.FileNotFoundException: file:///data/user/0/com.blizejprzedszkola.app.mojaplytoteka/app_flutter/covers/17_cover.jpg
On iOS everything works fine.

@jeromexiong
Copy link
Owner

please make sure the 17_cover.jpg file exist in device path

@DonAlex1897
Copy link

please make sure the 17_cover.jpg file exist in device path

I have the same problem. It doesn't understand the local path. I have checked multiple times and the path is correct. Also, it does not recognize my http://10.0.2.2:5000/... address, while it's reachable in other parts of code.

@PatriceVignola
Copy link
Contributor

@DonAlex1897 @maciogg It's probably not relevant anymore for you, but I recently stumbled upon this issue and made a fork that fixes it: https://github.com/PatriceVignola/audio_manager I will keep the fork up until it's merged into upstream (at the very least). If it never gets merged, I guess I'll just keep the fork until the end of times 😄 The changes are pretty simple so you can make your own fork with the same changes if you want, and use somthing like this in pubspec.yaml:

audio_manager:
    git:
      url: https://github.com/<github_username>/audio_manager

@jeromexiong I made a PR in case you're interested in merging it #81

@jeromexiong
Copy link
Owner

fine 😃

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