mirror of https://github.com/Chocobozzz/PeerTube
Disable chunk upload on ios
See https://github.com/kukhariev/ngx-uploadx/issues/316#issuecomment-915858713pull/4429/head
parent
8de589b953
commit
335fe15c47
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue