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
1b692356
authored
Nov 27, 2020
by
mReturn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上传视频时间限制为30分钟
parent
b3122790
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
baseSDK/src/main/res/layout/activity_camera.xml
baseSDK/src/main/res/values/strings.xml
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/PubCourseActivity.java
learnCenter/src/main/res/values/strings.xml
baseSDK/src/main/res/layout/activity_camera.xml
View file @
1b692356
...
...
@@ -9,7 +9,7 @@
android:id=
"@+id/jcameraview"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
app:duration_max=
"
3
00000"
app:duration_max=
"
18
00000"
app:iconLeft=
"@drawable/ic_back"
app:iconMargin=
"20dp"
app:iconRight=
"@null"
...
...
baseSDK/src/main/res/values/strings.xml
View file @
1b692356
...
...
@@ -1021,7 +1021,7 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string
name=
"upload_video"
>
上传视频:
</string>
<string
name=
"pls_choose_video"
>
请选择视频
</string>
<string
name=
"learn_tips"
>
温馨提示:
</string>
<string
name=
"learn_tip1"
>
1、建议横屏拍摄视频,长度不超过3分钟,以方便师傅们在手机上观看。
</string>
<string
name=
"learn_tip1"
>
1、建议横屏拍摄视频,长度不超过30分钟,以方便师傅们在手机上观看。
</string>
<string
name=
"learn_tip2"
>
2、请勿发布反动和涉黄内容的视频,平台有权下架并追究发布者的法律责任。
</string>
<string
name=
"learn_tip3"
>
3、大鱼平台将对优质课程(点赞数)和热门课程(阅读数)的发布者进行现金奖励。
</string>
<string
name=
"confirm_pub"
>
确认发布
</string>
...
...
learnCenter/src/main/java/com/dayu/learncenter/ui/activity/PubCourseActivity.java
View file @
1b692356
...
...
@@ -105,7 +105,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
if
(
pos
==
0
)
{
recordVideo
();
}
else
{
MediaChooseUtils
.
chooseSigleVideo
(
this
,
301
);
MediaChooseUtils
.
chooseSigleVideo
(
this
,
30
*
60
+
1
);
}
});
}
...
...
@@ -173,7 +173,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
if
(
mSelectList
!=
null
)
{
videoPath
=
mSelectList
.
get
(
0
).
getPath
();
File
file
=
new
File
(
videoPath
);
if
(
file
.
length
()
>
3
00
*
1024
*
1024
)
{
if
(
file
.
length
()
>
5
00
*
1024
*
1024
)
{
showToast
(
R
.
string
.
video_file_too_large
);
videoPath
=
""
;
}
else
{
...
...
learnCenter/src/main/res/values/strings.xml
View file @
1b692356
<resources>
<string
name=
"app_name"
>
LearnCenter
</string>
<string
name=
"video_file_too_large"
>
视频文件不能大于
3
00M
</string>
<string
name=
"video_file_too_large"
>
视频文件不能大于
5
00M
</string>
<string
name=
"take_video"
>
拍摄
</string>
<string
name=
"select_from_local"
>
从本地选择
</string>
<string
name=
"video_upload_fail"
>
视频上传失败
</string>
...
...
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