How do I change the duration of video recording intervals?

iOS:

The VideoEditorDurationConfig class is responsible for customizing video recording durations. You can set the required number of segments for recording videos of different durations.
Example: here the maximum video recording duration is set to 30 seconds:

var config = VideoEditorConfig() config.videoDurationConfiguration.maximumVideoDuration = 30.0

Please check out our documentation on this matter for more helpful details and the relevant configurations.


Android:

The CameraConfig is a main class that allows you to customize features for video recording, including changes to the video recording intervals.
Example: he following sets max video recording duration to 30 seconds:

single(override = true) { CameraConfig(maxRecordedTotalVideoDurationMs = 30_000) }

For more available configurations, visit our documentation.