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

When importing MP3 data, some images appear blank and give the warning I wrote below, as a result of which the application slows down a lot. #136

Open
yusuff122 opened this issue Nov 23, 2023 · 0 comments

Comments

@yusuff122
Copy link

yusuff122 commented Nov 23, 2023

E/MediaMetadataRetrieverJNI(21416): getEmbeddedPicture: Call to getEmbeddedPicture failed.
Lost connection to device.

    Future<void> fetchMusic() async {
       _audioQuery = OnAudioQuery();
     _musicList = await _audioQuery.querySongs(
          sortType: SongSortType.DATE_ADDED,
          orderType: OrderType.DESC_OR_GREATER,
          uriType: UriType.EXTERNAL,
          ignoreCase: true,

     );
_musicList.forEach((element)async {
  var media = await _audioQuery.queryArtwork(element.id, ArtworkType.AUDIO);
  if(media == null){
      _musicList.removeAt(element.id); 
  }
});
notifyListeners();
}

E/MediaMetadataRetrieverJNI(21416): How can I block the warning?

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

1 participant