Problems with the play/pause buttons on samsung s7 edge

problems with the play/pause buttons. when I set touch on any item to play/pause it didnt pause the music but instead turn to the next song and then when I touch it again it turn to the previous one, it just stop the music till the thith time I touch.