Can you do it with a normal female headphone socket? I'm modding an iPod! I have a 30GB iPod 5G video with a CF card in place of the HD to save some space and then putting a 80GB rear panel for even more space so that I can fit an internal speaker. Thanks again!
What do mean by this? 1/8" stereo TRS jack? If so, they are available with built-in switches. However, it the one you are replacing is PCB-mounted, this will be difficult if not impossible. If you can mount the new jack in the clear, on a panel, then you can do it.
Make a cord with an 1/8" stereo plug on it, plug it into the IPOd and leave it there. Do the switching at a remote panel-mounted 1/8" jack, near the speakers. That way if you are using the headphones, the speakers get muted.
Thanks, I found that if you play music with headphones plugged in and then unplug the headphones the music is automatically paused. This may mean that the headphone socked already has headphone detection. The problem is, it has a ribbon cable. Here is a link to the part: iPod Video 60/80 GB Headphone Jack & Hold Switch - iFixit