Update:
Added switchMode() for play/pause button.