aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-09 10:31:30 +0200
committerChocobozzz <me@florianbigard.com>2021-09-09 10:31:30 +0200
commit335fe15c47594d5e15badcb96ffae47035be85f9 (patch)
tree06800ad42c4c302783625229c8cfde7399c250ba /client/src/app
parent8de589b95316bb95ee3626c4749b6963843fb0c0 (diff)
downloadPeerTube-335fe15c47594d5e15badcb96ffae47035be85f9.tar.gz
PeerTube-335fe15c47594d5e15badcb96ffae47035be85f9.tar.zst
PeerTube-335fe15c47594d5e15badcb96ffae47035be85f9.zip
Disable chunk upload on ios
See https://github.com/kukhariev/ngx-uploadx/issues/316#issuecomment-915858713
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts7
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'
10import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models' 10import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
11import { UploaderXFormData } from './uploaderx-form-data' 11import { UploaderXFormData } from './uploaderx-form-data'
12import { VideoSend } from './video-send' 12import { VideoSend } from './video-send'
13import { 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) => {