Hello, trying to use MRProgress with AVAssetExportSession in swift 2.2
I want to display the overlay according the the session.progress value (going from 0 to 1).
It seems however that setting the progress to the overlay does nothing until the value is equal to 1.
If i did something wrong in my code could someone point me to the good direction?
Here is the related code :
Hello, trying to use MRProgress with AVAssetExportSession in swift 2.2 I want to display the overlay according the the session.progress value (going from 0 to 1). It seems however that setting the progress to the overlay does nothing until the value is equal to 1. If i did something wrong in my code could someone point me to the good direction? Here is the related code :
if let exportSession = AVAssetExportSession(asset: urlAsset, presetName: Config.VIDEO_COMPRESSION_PRESET) { exportSession.outputURL = outputURL exportSession.outputFileType = AVFileTypeMPEG4 exportSession.shouldOptimizeForNetworkUse = true exportSession.timeRange = CMTimeRangeMake(kCMTimeZero, urlAsset.duration)
output example from my print : Progress: 2.62599%., progress 0.0285576
Or it can be due to the animation delay for the overlay to appear, not sure about that.