FANDOM


The MediaRecorder class is used for both Audio and Video capture.


setAudioEncoder

setAudioSource


setVideoEncoder

setVideoSource


before calling prepare()


setOutputFormat

setOutputFile

Audio SourcesEdit

VOICE_CALL

VOICE_DOWNLINK

VOICE_UPLINK

Output SourcesEdit

MediaRecorder.OutputFormat.MPEG_4

MediaRecorder.OutputFormat.RAW_AMR

MediaRecorder.OutputFormat.THREE_GPP



recorder.prepare();
recorder.start();
recorder.stop();