我正在将视频写入外部存储,但是立即上传文件,然后将其删除。我宁愿只获取视频数据并直接上传它,而不必写入内部或外部路径。
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
CamcorderProfile profile = getCamcorderProfile(mVideoQuality);
mMediaRecorder.setProfile(profile);
mMediaRecorderOutputFile = videoFile;
mMediaRecorder.setOutputFile(videoFile.getPath());
mMediaRecorder.setPreviewDisplay(mPreview.getSurface());
mMediaRecorder.setOrientationHint(calculateCaptureRotation());
我的setOutputFile调用是否有替代品,它将写入某种Stream?