Commit 1b692356 by mReturn

修改上传视频时间限制为30分钟

parent b3122790
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
android:id="@+id/jcameraview" android:id="@+id/jcameraview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:duration_max="300000" app:duration_max="1800000"
app:iconLeft="@drawable/ic_back" app:iconLeft="@drawable/ic_back"
app:iconMargin="20dp" app:iconMargin="20dp"
app:iconRight="@null" app:iconRight="@null"
......
...@@ -1021,7 +1021,7 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸­äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ ...@@ -1021,7 +1021,7 @@ C) 在甲方使用大鱼平å°æœåŠ¡è¿‡ç¨‹ä¸­äº§ç”Ÿçš„业务数æ®ï¼Œå®¢æˆ·æ•°æ
<string name="upload_video">上传视频:</string> <string name="upload_video">上传视频:</string>
<string name="pls_choose_video">请选择视频</string> <string name="pls_choose_video">请选择视频</string>
<string name="learn_tips">温馨提示:</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_tip2">2、请勿发布反动和涉黄内容的视频,平台有权下架并追究发布者的法律责任。</string>
<string name="learn_tip3">3、大鱼平台将对优质课程(点赞数)和热门课程(阅读数)的发布者进行现金奖励。</string> <string name="learn_tip3">3、大鱼平台将对优质课程(点赞数)和热门课程(阅读数)的发布者进行现金奖励。</string>
<string name="confirm_pub">确认发布</string> <string name="confirm_pub">确认发布</string>
......
...@@ -105,7 +105,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity ...@@ -105,7 +105,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
if (pos == 0) { if (pos == 0) {
recordVideo(); recordVideo();
} else { } else {
MediaChooseUtils.chooseSigleVideo(this, 301); MediaChooseUtils.chooseSigleVideo(this, 30*60+1);
} }
}); });
} }
...@@ -173,7 +173,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity ...@@ -173,7 +173,7 @@ public class PubCourseActivity extends BaseActivity<PubCoursePresenter, Activity
if (mSelectList != null) { if (mSelectList != null) {
videoPath = mSelectList.get(0).getPath(); videoPath = mSelectList.get(0).getPath();
File file = new File(videoPath); File file = new File(videoPath);
if (file.length() > 300 * 1024 * 1024) { if (file.length() > 500 * 1024 * 1024) {
showToast(R.string.video_file_too_large); showToast(R.string.video_file_too_large);
videoPath = ""; videoPath = "";
}else{ }else{
......
<resources> <resources>
<string name="app_name">LearnCenter</string> <string name="app_name">LearnCenter</string>
<string name="video_file_too_large">视频文件不能大于300M</string> <string name="video_file_too_large">视频文件不能大于500M</string>
<string name="take_video">拍摄</string> <string name="take_video">拍摄</string>
<string name="select_from_local">从本地选择</string> <string name="select_from_local">从本地选择</string>
<string name="video_upload_fail">视频上传失败</string> <string name="video_upload_fail">视频上传失败</string>
......
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