Home
last modified time | relevance | path

Searched refs:mMediaRecorder (Results 1 – 2 of 2) sorted by relevance

/development/samples/browseable/MediaRecorder/src/com.example.android.mediarecorder/
DMainActivity.java48 private MediaRecorder mMediaRecorder; field in MainActivity
77 mMediaRecorder.stop(); // stop the recording in onCaptureClick()
119 if (mMediaRecorder != null) { in releaseMediaRecorder()
121 mMediaRecorder.reset(); in releaseMediaRecorder()
123 mMediaRecorder.release(); in releaseMediaRecorder()
124 mMediaRecorder = null; in releaseMediaRecorder()
174 mMediaRecorder = new MediaRecorder(); in prepareVideoRecorder()
178 mMediaRecorder.setCamera(mCamera); in prepareVideoRecorder()
181 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT ); in prepareVideoRecorder()
182 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); in prepareVideoRecorder()
[all …]
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java162 private MediaRecorder mMediaRecorder; field in Camera2VideoFragment
449 mMediaRecorder = new MediaRecorder(); in openCamera()
472 if (null != mMediaRecorder) { in closeCamera()
473 mMediaRecorder.release(); in closeCamera()
474 mMediaRecorder = null; in closeCamera()
578 mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); in setUpMediaRecorder()
579 mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.SURFACE); in setUpMediaRecorder()
580 mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); in setUpMediaRecorder()
584 mMediaRecorder.setOutputFile(mNextVideoAbsolutePath); in setUpMediaRecorder()
585 mMediaRecorder.setVideoEncodingBitRate(10000000); in setUpMediaRecorder()
[all …]