SCRecorder icon indicating copy to clipboard operation
SCRecorder copied to clipboard

How to get recording video size?

Open kuldeep13990 opened this issue 7 years ago • 3 comments

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.

kuldeep13990 avatar Mar 23 '17 13:03 kuldeep13990

Try to use this func getRecordedDuration() -> Float64 { guard let session = self.recorder?.session else { return 0.0 } let currentTime = session.duration return CMTimeGetSeconds(currentTime) }

bestiosdeveloper avatar Apr 03 '17 13:04 bestiosdeveloper

@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.

kuldeep13990 avatar Apr 04 '17 05:04 kuldeep13990

size = bit_rate * current_duration

wholeinsoul avatar Apr 04 '17 06:04 wholeinsoul