Toggle a play button

How do I make this into one button that toggles play/stop?