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
05cacac4
authored
Jan 08, 2025
by
han xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_xx_250104_SopVideoUpload' into dev_xx_250108_toast
parents
cb213351
1bf694b7
Show 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 @
05cacac4
...
...
@@ -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)
...
...
baseSDK/src/main/res/values/strings.xml
View file @
05cacac4
...
...
@@ -1054,5 +1054,9 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string
name=
"certified"
>
已合作商家
</string>
<string
name=
"order_material"
>
用料
</string>
<string
name=
"video_file_too_large_100"
>
视频文件不能大于100M
</string>
</resources>
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/EditCourseActivity.java
View file @
05cacac4
...
...
@@ -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
();
...
...
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/PubCourseActivity.java
View file @
05cacac4
...
...
@@ -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
();
...
...
learnCenter/src/main/res/values/strings.xml
View file @
05cacac4
<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>
...
...
orderCenter/src/main/java/com/dayu/order/ui/activity/MultiProcessOrderActivity.java
View file @
05cacac4
...
...
@@ -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
();
...
...
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