The linked answer is close, but not entirely correct. There isn't a specialized wire for buttons; it uses the microphone line.<p>Play/pause will usually be connected directly to ground. The other functions connect to ground through different impedances. While each impedance level is roughly twice the last one (which makes the detection circuit simpler) having one level at 1 ohm and the next at 2 ohms is not practical due to noise. Also, due to the way that parallel impedances work, you do not get a binary encoding of the buttons pressed. (Do you ever really want to skip the track and increase the volume at the same time anyway?)