Open mynameispp opened 6 years ago
这种交互完全可以自己写啊,修改MediaRecorderActivity:
//启动录制
public static void goSmallVideoRecorder(Activity context, MediaRecorderConfig mediaRecorderConfig) {
context.startActivityForResult(new Intent(context, MediaRecorderActivity.class).putExtra(MEDIA_RECORDER_CONFIG_KEY, mediaRecorderConfig), MediaRecorderBase.RECORD_VIDEO_CODE);
}
//完成转码
@Override
public void onEncodeComplete() {
hideProgress();
Intent intent = new Intent();
intent.putExtra(MediaRecorderActivity.OUTPUT_DIRECTORY, mMediaObject.getOutputDirectory());
intent.putExtra(MediaRecorderActivity.VIDEO_URI, mMediaObject.getOutputTempTranscodingVideoPath());
intent.putExtra(MediaRecorderActivity.VIDEO_SCREENSHOT, mMediaObject.getOutputVideoThumbPath());
intent.putExtra("go_home", GO_HOME);
setResult(Activity.RESULT_OK, intent);
finish();
}```
可以自己改,不看代码吗?
不可以写个回调 参数吗?