Verified Commit 335fe15c authored by Chocobozzz's avatar Chocobozzz
Browse files
parent 8de589b9
Pipeline #443324 passed with stage
in 10 minutes and 59 seconds
......@@ -10,6 +10,7 @@ import { LoadingBarService } from '@ngx-loading-bar/core'
import { HttpStatusCode, VideoCreateResult, VideoPrivacy } from '@shared/models'
import { UploaderXFormData } from './uploaderx-form-data'
import { VideoSend } from './video-send'
import { isIOS } from 'src/assets/player/utils'
@Component({
selector: 'my-video-upload',
......@@ -69,11 +70,17 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
) {
super()
// FIXME: https://github.com/Chocobozzz/PeerTube/issues/4382#issuecomment-915854167
const chunkSize = isIOS()
? 0
: undefined // Auto chunk size
this.uploadxOptions = {
endpoint: this.BASE_VIDEO_UPLOAD_URL,
multiple: false,
token: this.authService.getAccessToken(),
uploaderClass: UploaderXFormData,
chunkSize,
retryConfig: {
maxAttempts: 6,
shouldRetry: (code: number) => {
......
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 to comment