I'm programming a website where you can choose mp3's to play from a playlist. The webiste must be accessed from a Raspberry Pi. The Raspberry has 3 buttons(next, previous, pause). Can I control the playlist with the buttons? So when I press next, the next song on the website will start.
Best How To :
You probably could make a file containing a variable. every few seconds the website loads that file via java script and checks the value. When you press a key on the RPi, you could change that value, the website will read it (and reset it) and change the song. I would generate this file via PHP, as this can be run on the server and on command line.