Type Reason Java.Lang.IllegalStateException if it is called after start() or before setOutputFormat(). Java.IO.IOException if prepare fails otherwise.
Prepares the recorder to begin capturing and encoding data. This method must be called after setting up the desired audio and video sources, encoders, file format, etc., but before start().