Commit 1bf694b7 by han xu

修复sop视频选择过大问题

parent 07552cee
......@@ -158,6 +158,10 @@ public class MediaChooseUtils {
// .setCropEngine(new ImageFileCropEngine())
// .setFilterMaxFileSize(maxCount)
.setImageSpanCount(4)
.setRecordVideoMaxSecond(videoLength)
.setFilterVideoMinSecond(minLength)
.setRecordVideoMaxSecond(videoLength)
.setRecordVideoMinSecond(minLength)
.setSelectionMode(SelectModeConfig.MULTIPLE);
// .isPreviewImage(true)
// .isDisplayCamera(true)
......
......@@ -1054,5 +1054,9 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸­äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string name="certified">已合作商家</string>
<string name="order_material">用料</string>
<string name="video_file_too_large_100">视频文件不能大于100M</string>
</resources>
......@@ -247,7 +247,7 @@ public class EditCourseActivity extends BaseActivity<PubCoursePresenter, Activit
}
File file = new File(videoPath);
if (file.length() > 300 * 1024 * 1024) {
showToast(R.string.video_file_too_large);
showToast(R.string.video_file_too_large_300);
videoPath = "";
} else {
setVideoView();
......@@ -263,7 +263,7 @@ public class EditCourseActivity extends BaseActivity<PubCoursePresenter, Activit
}
File file = new File(videoPath);
if (file.length() > 500 * 1024 * 1024) {
showToast(R.string.video_file_too_large);
showToast(R.string.video_file_too_large_500);
videoPath = "";
} else {
setVideoView();
......
......@@ -183,7 +183,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
}
File file = new File(videoPath);
if (file.length() > 500 * 1024 * 1024) {
showToast(R.string.video_file_too_large);
showToast(R.string.video_file_too_large_500);
videoPath = "";
} else {
setVideoView();
......@@ -199,7 +199,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
}
File file = new File(videoPath);
if (file.length() > 500 * 1024 * 1024) {
showToast(R.string.video_file_too_large);
showToast(R.string.video_file_too_large_500);
videoPath = "";
} else {
setVideoView();
......
<resources>
<string name="app_name">LearnCenter</string>
<string name="video_file_too_large">视频文件不能大于500M</string>
<string name="video_file_too_large_300">视频文件不能大于300M</string>
<string name="video_file_too_large_500">视频文件不能大于500M</string>
<string name="take_video">拍摄</string>
<string name="select_from_local">从本地选择</string>
<string name="video_upload_fail">视频上传失败</string>
......
......@@ -269,8 +269,8 @@ public class MultiProcessOrderActivity extends BaseActivity<MultiProcessOrderPre
videoPath = mSelectList.get(0).getRealPath();
}
File file = new File(videoPath);
if (file.length() > 500 * 1024 * 1024) {
showToast("视频文件不能大于500M");
if (file.length() > 100 * 1024 * 1024) {
showToast(R.string.video_file_too_large_100);
videoPath = "";
} else {
setVideoView();
......@@ -285,8 +285,8 @@ public class MultiProcessOrderActivity extends BaseActivity<MultiProcessOrderPre
videoPath = mSelectList1.get(0).getRealPath();
}
File file = new File(videoPath);
if (file.length() > 500 * 1024 * 1024) {
showToast("视频文件不能大于500M");
if (file.length() > 100 * 1024 * 1024) {
showToast(R.string.video_file_too_large_100);
videoPath = "";
} else {
setVideoView();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment