I try to capture video:
https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#//apple_ref/doc/uid/TP40010188-CH5-SW26
var maxDuration : CMTime = CMTimeMake(seconds, preferredTimeScale)
aMovieFileOutput.maxRecordedDuration = CMTimeMake(seconds, preferredTimeScale)
1 row have error: Use of module 'CMTime' as a type
2 row have error: Use of unresolved identifier 'CMTimeMake'
What I do wrong?
CMTimeMake
also receives seconds what is the difference withCMTimeMakeWithSeconds
? and ifpreferredTimeScale
is just the denominator inCMTimeMake
it is not clear what is its purpose inCMTimeMakeWithSeconds
– Dermis