The button operation controls the device from which the current earphones are outputting sound. If the earphones are not playing sound, it controls the last connected device or the last device that produced sound through the earphones (call, music, alert tones, etc.).