Hi RetroHavoc,
RetroHavoc wroteI need a button that if I press it pauses and when I press again it plays
Do you need a physical button or a button in the web interface?
There is already a button for pause and play in the web interface, is your problem that it looks different to what other players show (e.g. reversed play and pause icons) or do you need more?
You could look here for a previous discussion about this:
#62083 It may help you to specify what you need.
janui