Java android.media MediaRecorder fields, constructors, methods, implement or subclass

Example usage for Java android.media MediaRecorder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.media MediaRecorder.

The text is from its open source code.

Field

intMEDIA_RECORDER_INFO_MAX_DURATION_REACHED
A maximum duration had been setup and has now been reached.
intMEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED
A maximum filesize had been setup and has now been reached.

Constructor

MediaRecorder()
Default constructor.

Method

voidprepare()
Prepares the recorder to begin capturing and encoding data.
voidrelease()
Releases resources associated with this MediaRecorder object.
voidsetAudioEncoder(int audio_encoder)
Sets the audio encoder to be used for recording.
voidsetAudioSource(int audio_source)
Sets the audio source to be used for recording.
voidsetOutputFile(FileDescriptor fd)
Pass in the file descriptor of the file to be written.
voidsetOutputFile(File file)
Pass in the file object to be written.
voidsetOutputFile(String path)
Sets the path of the output file to be produced.
voidsetOutputFormat(int output_format)
Sets the format of the output file produced during recording.
voidstart()
Begins capturing and encoding data to the file specified with setOutputFile().
voidstop()
Stops recording.