diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-26 10:56:55 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-26 10:56:55 +0100 |
commit | ddb62a85c5517d3437feb7d487a8a11881b68fcb (patch) | |
tree | b27bc798a85224a2fe5406ef5a9be49d17b48d66 /client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | |
parent | e08ff02a9f1fb1cfbdfa8f0f602eda9419ba6cc3 (diff) | |
download | PeerTube-ddb62a85c5517d3437feb7d487a8a11881b68fcb.tar.gz PeerTube-ddb62a85c5517d3437feb7d487a8a11881b68fcb.tar.zst PeerTube-ddb62a85c5517d3437feb7d487a8a11881b68fcb.zip |
Fix wait transcoding checkbox display
Diffstat (limited to 'client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | 6 |
1 files changed, 0 insertions, 6 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 cafb030b9..ca21b61cd 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 | |||
@@ -44,7 +44,6 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
44 | } | 44 | } |
45 | formData: FormData | 45 | formData: FormData |
46 | 46 | ||
47 | waitTranscodingEnabled = true | ||
48 | previewfileUpload: File | 47 | previewfileUpload: File |
49 | 48 | ||
50 | error: string | 49 | error: string |
@@ -163,11 +162,6 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
163 | if (nameWithoutExtension.length < 3) name = videofile.name | 162 | if (nameWithoutExtension.length < 3) name = videofile.name |
164 | else name = nameWithoutExtension | 163 | else name = nameWithoutExtension |
165 | 164 | ||
166 | // Force user to wait transcoding for unsupported video types in web browsers | ||
167 | if (!videofile.name.endsWith('.mp4') && !videofile.name.endsWith('.webm') && !videofile.name.endsWith('.ogv')) { | ||
168 | this.waitTranscodingEnabled = false | ||
169 | } | ||
170 | |||
171 | const nsfw = this.serverConfig.instance.isNSFW | 165 | const nsfw = this.serverConfig.instance.isNSFW |
172 | const waitTranscoding = true | 166 | const waitTranscoding = true |
173 | const commentsEnabled = true | 167 | const commentsEnabled = true |