There is some sample code at this site (all the way at the bottom) that I was able to modify to do my own capturing and playback. It uses the sound API, which means you don't have to worry about explicitly setting up JMF if you are using a newer JRE.