imaginary-cloud / CameraManager

Simple Swift class to provide all the configurations you need to create custom camera view in your app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to set maximum duration for a video?

zeona-n opened this issue · comments

Is there any way to set maximum and minimum duration of video?

I'm unsure if that is part of this library. But you can definitely use a timer once the user starts recording that determines whether the user can stop the recording, whether the video should stop recording on it's own, etc.

https://www.hackingwithswift.com/articles/117/the-ultimate-guide-to-timer

@kselvin Thank u so much, I used timer to acheive the same and it's working.