Thanks for watching my video sorry guys for no audio for flutter music player. tutorial : • Flutter Music Player t... Sound from : mixkit.co/free... Please support me - www.paypal.com... Please like, share and subscribe
While I am playing audio from url it is working fine but today suddenly the audio is not played it shows MediaPlayer called in state 0, error(-38,0)....any solution for that
May I ask you a question? What if you have a list of songs on your phone, how can you pass an index though getAudio( ) function? If I try to pass an index, I get an error saying that function has to be void.. do you have any idea? I read the documentation, and I cannot seem to find how to pass an index of the list when clicking on a song.
I would throw the list of mp3 files into a json with an index for each value. Call the json via Future and then just use the indexed url value as the required Url string.