#Flutter #FlutterUI #AndroidDev in this video, I'm going to show you how to make a cool music Player app using Flutter. you will learn how to play music from assets Source code: doctorcodetutorial.blogspot.c...
Hey good job man! I have a question: i am creating an app that sounds sometimes (i use the same package as you showed me in the video). However when the app sound, it interrupt the music that the user may have in the background (with spotify or deezer for example) and i don't want this to happen. What could I do launch the music again after the sound is played, or to play the sound above the music?
Hello doc, an error saying field 'cache' has not been initialized is showing when I press play button. What seems to be the problem? And I used late modifier to declare AudioPlayer and AudioCache since it was not allowing null value in the AudioPlayer and AudioCache.
i tried the same but instead of audio cache i have used a url to fetch song but the issue is the duration slider is not working. can you help me out please
it saying durationHandler and durationPosition The setter 'durationHandler' isn't defined for the type 'AudioPlayer'. The setter 'positionHandler' isn't defined for the type 'AudioPlayer'. please help
Question, question, question for the Doctor: dear Doc, can I "replace" the mp3 file with a stream url? It is to play an online radio. Thanks for your time.
Definitely yes, Flutter is growing every year andbit become more and more popular even mong most companies. So I recommend learning it as soon as possible
the method is simple, you just need to create a list of music URL ( or paths if you want it locally) and you add an event so when the music end it start to play the second one
Try checking the file name and path, if everything is correct check your emulator sound level or try to change the emulators, some emulator don't support the audio output, (I faced the same problem with and old emulator, and it worked with a new one)
it saying durationHandler and durationPosition The setter 'durationHandler' isn't defined for the type 'AudioPlayer'. The setter 'positionHandler' isn't defined for the type 'AudioPlayer'.
@override void initState() { // TODO: implement initState super.initState(); _player = AudioPlayer(); cache = AudioCache(); } the AudioCache ( ) doesn't take FixedPlayer argument for me but it does for you at 12:41 How can I solve that