I can start progress bar when AVAssetExportSession
is started.
Tell me how to start progress when it will be start.
I want to set progress bar with AVAssetExportSession
.
Asked
Active
Viewed 1,439 times
0

Brian
- 14,610
- 7
- 35
- 43

sojitra jigar
- 21
- 8
-
http://stackoverflow.com/questions/11090760/progress-bar-for-avassetexportsession – Ketan P Jul 15 '16 at 14:18
-
Can you better describe your question? You say that you can start the progress bar, but you're asking how to start the progress bar. – Brian Jul 15 '16 at 14:44
1 Answers
0
First, in the method in which you call AVAssetExportSession you've got to set up a timer to update your UIProgressView once you've initiated the export:
//AVAssetExportSession code here
self.exportProgressBarTimer = [NSTimer scheduledTimerWithTimeInterval:.1 target:self selector:@selector(updateExportDisplay) userInfo:nil repeats:YES];
...
Then you need a method to update your display taking into account that the progress property on AVAssetExportSession goes from 0 - 1:
- (void)updateExportDisplay {
self.exportProgressBar.progress = exportSession.progress;
if (self.exportProgressBar.progress > .99) {
[self.exportProgressBarTimer invalidate];
}
}
Let me know it works for you or not!!
Happy Coding!!

Ravi B
- 1,574
- 2
- 14
- 31
-
Copy answered form this link http://stackoverflow.com/questions/11090760/progress-bar-for-avassetexportsession – Ketan P Jul 15 '16 at 14:18
-
i cannot use progressbar. i'm using svprogressview HUD... how can i set progress with exportsession. tell me – sojitra jigar Jul 19 '16 at 14:14