MCLRecordingConfig
@interface MCLRecordingConfig : NSObject <NSCopying>
Pass this to -[Megacool startRecording:withConfig:]
to configure how recordings are made.
Note
This class does not have atomic properties for efficiency, thus it’s not thread-safe.-
How to handle frames when they the total surpasses
maxFrames.
The default is
kMCLOverflowStrategyLatest
, which will only keep the most recent ones. The alternative is@"timelapse"
, which will contain frames from the entire recording but sped up so that the total is not surpassed. Note that when using@"timelapse"
the total number of frames will be between 1.33*maxFrames
and 0.67*maxFrames
, such that the expected value will bemaxFrames
, but it might sometimes be more.Declaration
Objective-C
@property (assign, readwrite, nonatomic) MCLOverflowStrategy overflowStrategy;
Swift
var overflowStrategy: MCLOverflowStrategy { get set }
-
An identifier for this recording, useful when you might have multiple in-progress recordings.
Can be used to retrieve the same recording later, for previews or shares, or to resume a paused recording.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, null_resettable) NSString *recordingId;
Swift
var recordingId: String! { get set }
-
Crops (surprise!) the recording to the given area.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGRect crop;
Swift
var crop: CGRect { get set }
-
Max number of frames in a recording.
Default is 50 frames. What happens when a recording grows above the
maxFrames
limit is determined by the overflow strategy, see the documentation forcaptureFrame
orstartRecording
for details.Declaration
Objective-C
@property (assign, readwrite, nonatomic) int maxFrames;
Swift
var maxFrames: Int32 { get set }
-
Set numbers of frames per second to record.
Default is 10 frames / second. The GIF will be recorded with this frame rate.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) float frameRate;
Swift
var frameRate: Float { get set }
-
Percentage of highlight that should occur before maximum number of points is scored
Declaration
Objective-C
@property (assign, readwrite, nonatomic) double peakLocation;
Swift
var peakLocation: Double { get set }
-
Declaration
Objective-C
@property(nonatomic) BOOL forceAdd
Swift
var forceAdd: Bool { get set }