SCRecorder
SCRecorder copied to clipboard
How to get recording video size?
I want to check whether space is available or not in device. so can you guys please help me about How can i get Currently recording video size ?
so i can notify user that you don't have enough space in your device.
Thanks in Advance.
Try to use this func getRecordedDuration() -> Float64 { guard let session = self.recorder?.session else { return 0.0 } let currentTime = session.duration return CMTimeGetSeconds(currentTime) }
@kumarpramod017 , I don't wat to get video recording duration nut i want the live video recording size.
suppose record duration reach to 1 min than video size will be 20 mb, if video duration reach to 2 min than video size will be 50 mb.
actually i want to check recording video size.
size = bit_rate * current_duration