For info, in the xperia x without any modification or script, i use QuasarMX. The wired headphone's button - 1 click pause/play - 2 clicks next song i haven't tried the stock player.