shahzeb1 / soundcloud-player

🎶 A proof of concept SoundCloud player which uses public API's to play music in the browser.
https://shahzeb1.github.io/soundcloud-player/
26 stars 13 forks source link

Make it so that there is only 1 play and pause button. #1

Closed shahzeb1 closed 7 years ago

shahzeb1 commented 7 years ago

If the song is playing then show the pause button. If the song is paused (or not playing) then show the play button.

The section/code you should focus on: These lines.

Good issue for beginners!

mohammedri commented 7 years ago

Do you want to remove the button or appear as if it is disabled?

shahzeb1 commented 7 years ago

Remove the pause button.

So there would be 1 button. If the song is playing, then clicking the button should pause the song. If the song is paused, then clicking the button should play the song. Icons within the button should change accordingly.

R3l4x3 commented 7 years ago

I'll take a look into it.