mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:29:39 +08:00
视频并发上传 || 失败重试
This commit is contained in:
@@ -29,7 +29,7 @@ export class UploadChunk {
|
||||
this.progress = 0;
|
||||
this.isStop = false;
|
||||
this.chunkIndex = 1;
|
||||
this.chunkSize = 6 * 1024 * 1024;
|
||||
this.chunkSize = 5 * 1024 * 1024; //分块大小-5mb
|
||||
this.chunkNumber = Math.ceil(file.size / this.chunkSize);
|
||||
|
||||
this.uploadId = uploadId;
|
||||
@@ -100,6 +100,7 @@ export class UploadChunk {
|
||||
|
||||
retry() {
|
||||
this.isStop = false;
|
||||
this.uploadStatus = 0;
|
||||
this.start();
|
||||
this.onRetry && this.onRetry();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user