=> After recording, video can not be played.
请贵司参考如下diff修改验证,若第三方相机也要做类似的修改已避免权限问题不能播放,感谢~
diff --git a/src/com/mediatek/camera/mode/VideoModeHelper.java b/src/com/mediatek/camera/mode/VideoModeHelper.java
index befb94c..e5edc0b 100755
--- a/src/com/mediatek/camera/mode/VideoModeHelper.java
+++ b/src/com/mediatek/camera/mode/VideoModeHelper.java
@@ -238,6 +238,7 @@
if (valid) {
resultCode = Activity.RESULT_OK;
resultIntent.setData(uri);
+ resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
Log.d(TAG, "[doReturnToCaller](" + valid + ")" + ",mCurrentVideoUri = " + uri);
}
mIModuleCtrl.backToCallingActivity(resultCode, resultIntent);
diff --git a/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java b/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java
index 2dc2125..d78928d 100755
--- a/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java
+++ b/src/com/mediatek/camera/v2/mode/normal/CaptureMode.java
@@ -1065,6 +1065,7 @@
int resultCode;
resultCode = Activity.RESULT_OK;
resultIntent.setData(mUri);
+ resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
mAppController.setResultExAndFinish(resultCode, resultIntent);
}