Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1bf694b7
authored
4 months ago
by
han xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复sop视频选择过大问题
parent
07552cee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
9 deletions
baseSDK/src/main/java/com/dayu/utils/MediaChooseUtils.java
baseSDK/src/main/res/values/strings.xml
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/EditCourseActivity.java
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/PubCourseActivity.java
learnCenter/src/main/res/values/strings.xml
orderCenter/src/main/java/com/dayu/order/ui/activity/MultiProcessOrderActivity.java
baseSDK/src/main/java/com/dayu/utils/MediaChooseUtils.java
View file @
1bf694b7
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
baseSDK/src/main/res/values/strings.xml
View file @
1bf694b7
...
...
@@ -1054,5 +1054,9 @@ C) åœ¨ç”²æ–¹ä½¿ç”¨å¤§é±¼å¹³å°æœåŠ¡è¿‡ç¨‹ä¸äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string
name=
"certified"
>
已合作商家
</string>
<string
name=
"order_material"
>
用料
</string>
<string
name=
"video_file_too_large_100"
>
视频文件不能大于100M
</string>
</resources>
This diff is collapsed.
Click to expand it.
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/EditCourseActivity.java
View file @
1bf694b7
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/PubCourseActivity.java
View file @
1bf694b7
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
learnCenter/src/main/res/values/strings.xml
View file @
1bf694b7
<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>
...
...
This diff is collapsed.
Click to expand it.
orderCenter/src/main/java/com/dayu/order/ui/activity/MultiProcessOrderActivity.java
View file @
1bf694b7
...
...
@@ -269,8 +269,8 @@ public class MultiProcessOrderActivity extends BaseActivity<MultiProcessOrderPre
videoPath
=
mSelectList
.
get
(
0
).
getRealPath
();
}
File
file
=
new
File
(
videoPath
);
if
(
file
.
length
()
>
5
00
*
1024
*
1024
)
{
showToast
(
"视频文件不能大于500M"
);
if
(
file
.
length
()
>
1
00
*
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
()
>
5
00
*
1024
*
1024
)
{
showToast
(
"视频文件不能大于500M"
);
if
(
file
.
length
()
>
1
00
*
1024
*
1024
)
{
showToast
(
R
.
string
.
video_file_too_large_100
);
videoPath
=
""
;
}
else
{
setVideoView
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment