While I am not just going to give you an answer, I can give you a resource to read. Point is, there are a billion different ways to do this, but the best would be to learn and understand the JMF: Java medi frame work.

It can be a bare if you are not to experienced with Java, but it is a clean useful set to use - even though it is java
Here is the basic FAQ: http://java.sun.com/products/java-me...1/faq-jmf.html

This is a dated article, but it I still have it in my Bookmarks it is an interesting article, and an ok read. Not much educationl value, but more of a preception on the purpose of the JMF.
http://www.javaworld.com/javaworld/j...-06-media.html

This again, is just one way to aim what you are going for. Like anything else in Java, it is clunky, and a tad slow. The set makes life a ton easier when working with media though
good luck

Bipper