Skip to content

Commit 247e761

Browse files
authored
Merge pull request #11 from sutro-planet/bump-video-length
Bump video length limit to 60 minutes. 前端增加视频长度限制至60分钟
2 parents 0733b64 + 792cfab commit 247e761

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/(default)/playground/widgets/inputVideo.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface Props {
3434
videoId: string;
3535
}
3636

37-
const MAX_VIDEO_MIN_LENGTH = 20 * 60; //20分钟
37+
const MAX_VIDEO_MIN_LENGTH = 60 * 60; //60分钟
3838

3939
const InputVideo: React.FC<Props> = ({ onFinish, videoId }) => {
4040
const [messageApi, contextHolder] = message.useMessage();
@@ -65,8 +65,8 @@ const InputVideo: React.FC<Props> = ({ onFinish, videoId }) => {
6565
ResponseMessageEnum.videoTooLong,
6666
);
6767
if (isVideoTooLong) {
68-
addLogEvent('远程下载失败:视频超过20分钟限制');
69-
messageApi.error('下载失败,视频超过20分钟限制');
68+
addLogEvent('远程下载失败:视频超过60分钟限制');
69+
messageApi.error('下载失败,视频超过60分钟限制');
7070
} else {
7171
addLogEvent('远程下载视频失败');
7272
messageApi.error('下载失败,请重试');
@@ -263,8 +263,8 @@ const InputVideo: React.FC<Props> = ({ onFinish, videoId }) => {
263263
const isVideoCanUpload =
264264
timeDuration < MAX_VIDEO_MIN_LENGTH;
265265
if (!isVideoCanUpload) {
266-
addLogEvent('远程上传失败:视频超过20分钟限制');
267-
messageApi.error('上传失败,视频超过20分钟限制');
266+
addLogEvent('远程上传失败:视频超过60分钟限制');
267+
messageApi.error('上传失败,视频超过60分钟限制');
268268
}
269269
return isVideoCanUpload || Upload.LIST_IGNORE;
270270
} catch {

0 commit comments

Comments
 (0)