diff options
Diffstat (limited to 'client/src/app')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts index 56051cf4c..5fc8b21fb 100644 --- a/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | |||
@@ -10,6 +10,7 @@ import { LoadingBarService } from '@ngx-loading-bar/core' | |||
10 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' | 10 | import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' |
11 | import { UploaderXFormData } from './uploaderx-form-data' | 11 | import { UploaderXFormData } from './uploaderx-form-data' |
12 | import { VideoSend } from './video-send' | 12 | import { VideoSend } from './video-send' |
13 | import { isIOS } from 'src/assets/player/utils' | ||
13 | 14 | ||
14 | @Component({ | 15 | @Component({ |
15 | selector: 'my-video-upload', | 16 | selector: 'my-video-upload', |
@@ -69,11 +70,17 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
69 | ) { | 70 | ) { |
70 | super() | 71 | super() |
71 | 72 | ||
73 | // FIXME: https://github.com/Chocobozzz/PeerTube/issues/4382#issuecomment-915854167 | ||
74 | const chunkSize = isIOS() | ||
75 | ? 0 | ||
76 | : undefined // Auto chunk size | ||
77 | |||
72 | this.uploadxOptions = { | 78 | this.uploadxOptions = { |
73 | endpoint: this.BASE_VIDEO_UPLOAD_URL, | 79 | endpoint: this.BASE_VIDEO_UPLOAD_URL, |
74 | multiple: false, | 80 | multiple: false, |
75 | token: this.authService.getAccessToken(), | 81 | token: this.authService.getAccessToken(), |
76 | uploaderClass: UploaderXFormData, | 82 | uploaderClass: UploaderXFormData, |
83 | chunkSize, | ||
77 | retryConfig: { | 84 | retryConfig: { |
78 | maxAttempts: 6, | 85 | maxAttempts: 6, |
79 | shouldRetry: (code: number) => { | 86 | shouldRetry: (code: number) => { |