diff options
Diffstat (limited to 'client/angular/videos')
-rw-r--r-- | client/angular/videos/components/add/videos-add.component.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/angular/videos/components/add/videos-add.component.ts b/client/angular/videos/components/add/videos-add.component.ts index 3a7b02133..9926aed63 100644 --- a/client/angular/videos/components/add/videos-add.component.ts +++ b/client/angular/videos/components/add/videos-add.component.ts | |||
@@ -36,10 +36,13 @@ export class VideosAddComponent implements OnInit { | |||
36 | 36 | ||
37 | progressall: (e, data) => { | 37 | progressall: (e, data) => { |
38 | this.progressBar.value = data.loaded; | 38 | this.progressBar.value = data.loaded; |
39 | this.progressBar.max = data.total; | 39 | // The server is a little bit slow to answer (has to seed the video) |
40 | // So we add more time to the progress bar (+10%) | ||
41 | this.progressBar.max = data.total + (0.1 * data.total); | ||
40 | }, | 42 | }, |
41 | 43 | ||
42 | done: (e, data) => { | 44 | done: (e, data) => { |
45 | this.progressBar.value = this.progressBar.max; | ||
43 | console.log('Video uploaded.'); | 46 | console.log('Video uploaded.'); |
44 | 47 | ||
45 | // Print all the videos once it's finished | 48 | // Print all the videos once it's finished |