How would I go about setting the maximum time a video can be recorded in codename one using capturevideo?
This functionality isn't supported by the capture API at this time. You can use native interfaces to implement it per platform but that might take some work.