sc4v3ng3r / flutter_audio_query

Flutter Audio Query Plugin
https://pub.dev/packages/flutter_audio_query
MIT License
52 stars 48 forks source link

Hey man, I've got a problem your plugin shows only 2 songs. #33

Open Tushargupta9800 opened 3 years ago

Tushargupta9800 commented 3 years ago

In my phone i have about 60 songs but your plugin shows me only 2 songs. please help me where i'm wrong.

sc4v3ng3r commented 3 years ago

I need more info about to replicate your issue and fix it.

katungi commented 3 years ago

@sc4v3ng3r I am having the same problem, when i sort using different parameters,it brings different songs. Is there a way to use SongSortType to get all the songs on my device and display them?? When i use SongSortType.Default it finds only one song.

sc4v3ng3r commented 3 years ago

I'll check this bug. Thanks

sc4v3ng3r commented 3 years ago

@katungi I was not able to replicate the problem described I'll need more debug information. I am getting the same song numbers using all SortSongType values.

What Android version are you facing that bad behavior? Are you sure the content you expect to receive isn't protected by the creator app?

I'll mark this issue as onHold for now.

katungi commented 3 years ago

@sc4v3ng3r I guess something is wrong with my implementation then. This is how i did it.

FutureBuilder(
                future: FlutterAudioQuery()
                    .getSongs(sortType: SongSortType.DISPLAY_NAME),
                builder: (context, snapshot) {
                  List<SongInfo> songInfo = snapshot.data;
                  if (snapshot.hasData) return SongWidget(songList: songInfo);

Maybe you can help me debug the error. When i use default, it brings some songs then this error. yamp