DFPlayerMini_Fast icon indicating copy to clipboard operation
DFPlayerMini_Fast copied to clipboard

play the second music after the first music is finished

Open nzappstudio opened this issue 3 years ago • 1 comments

Hello, I want the second music to play after the first music plays completely under one condition. How can I do that?

I have one more question. I have two buttons and when I press the first button I want to play the first music and when I press the second button I want to mute the first music and play the second song.

if (verilerim[0] == 1 && !player.isPlaying()) { player.play(1); delay(100); player.play(2); } else if (verilerim[1] == 1 && player.isPlaying()){ player.play(1); stop(); player.play(3); }

nzappstudio avatar Feb 11 '22 08:02 nzappstudio