I have implemented a video range slider - https://github.com/itsmeichigo/ICGVideoTrimmer
In this video slider, I want to get video size every time the slider is changed for selecting the video range.
This delegate method is called everytime when I changes the slider. I get the start time and end time for a video, but how can I get the file size for example - video's 10th sec to 40th sec ?
func trimmerView(trimmerView: ICGVideoTrimmerView, didChangeLeftPosition startTime: CGFloat, rightPosition endTime: CGFloat) {
if startTime != self.startTime {
//then it moved the left position, we should rearrange the bar
self.seekVideoToPos(startTime)
}
self.startTime = startTime
self.stopTime = endTime
self.videoDurationLabel.text = "\(endTime - startTime) sec"
}