Example usage for Java android.media MediaRecorder fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MEDIA_RECORDER_INFO_MAX_DURATION_REACHED A maximum duration had been setup and has now been reached. |
int | MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED A maximum filesize had been setup and has now been reached. |
MediaRecorder() Default constructor. |
void | prepare() Prepares the recorder to begin capturing and encoding data. |
void | release() Releases resources associated with this MediaRecorder object. |
void | setAudioEncoder(int audio_encoder) Sets the audio encoder to be used for recording. |
void | setAudioSource(int audio_source) Sets the audio source to be used for recording. |
void | setOutputFile(FileDescriptor fd) Pass in the file descriptor of the file to be written. |
void | setOutputFile(File file) Pass in the file object to be written. |
void | setOutputFile(String path) Sets the path of the output file to be produced. |
void | setOutputFormat(int output_format) Sets the format of the output file produced during recording. |
void | start() Begins capturing and encoding data to the file specified with setOutputFile(). |
void | stop() Stops recording. |