|
|
|
@ -87,6 +87,7 @@ public class Camera2VideoActivity extends AppCompatActivity {
|
|
|
|
|
private int mOrientation = -1;
|
|
|
|
|
|
|
|
|
|
private String mNextVideoAbsolutePath;
|
|
|
|
|
private String mOutputPath;
|
|
|
|
|
|
|
|
|
|
private String mOSDLeftTop = null;
|
|
|
|
|
private String mOSDRightTop = null;
|
|
|
|
@ -262,6 +263,10 @@ public class Camera2VideoActivity extends AppCompatActivity {
|
|
|
|
|
mOSDMargin = intent.getIntExtra("margin", 12);
|
|
|
|
|
|
|
|
|
|
mResultType = intent.getIntExtra("resultType", RESULT_TYPE_BROADCAST);
|
|
|
|
|
String path = intent.getStringExtra("path");
|
|
|
|
|
if (!TextUtils.isEmpty(path)) {
|
|
|
|
|
mOutputPath = path;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mCameraWidth = mVideoWidth;
|
|
|
|
|
mCameraHeight = mVideoHeight;
|
|
|
|
@ -838,6 +843,12 @@ public class Camera2VideoActivity extends AppCompatActivity {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!TextUtils.isEmpty(mOutputPath)) {
|
|
|
|
|
File file = new File(path);
|
|
|
|
|
file.renameTo(new File(mOutputPath));
|
|
|
|
|
path = mOutputPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mResultType == RESULT_TYPE_NONE) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|