The mic button on iPhone headphones can be used to control playback of music and videos.
Click once to pause the current song or video, then click again to resume playback.
Quickly click twice to skip to the next song or quickly three times to go back to the previous song. If you’re more than three seconds into the current track, clicking three times will restart it.
If you quickly click twice and hold on the second press, the song will fast-forward until you let go. If its quickly pressed three times and held on the third press, then the song will rewind until let go again.
If you’re listening to music with headphones and you pull the jack out of the iPhone, the device will automatically pause playback without requiring you to interact with the screen.