In addition to adding the movie file output, we will need to provide some GUI interaction to allow our App user to save the movie to a file of their choice once it has been captured.
As with all of our Apps' instance variables, we need to add the program code for the
@property
in the file namedBTSAppDelegate.h
and to@synthesize
the accessor in the file namedBTSAppDelegate.m
.// Use this property to capture a movie to disk @property (strong) QTCaptureMovieFileOutput* m_CaptureMovieFileOutput; // Create the accessors for the Capture // Movie File Output object @synthesize m_CaptureMovieFileOutput;
In the file named
BTSAppDelegate.m
to create the movie file object, add the following program code in the method namedapplicationDidFinishLaunching:
. Add it to the capture session, just prior to the line that starts the capture session.// Create the movie file output and add it to the session m_CaptureMovieFileOutput = [[QTCaptureMovieFileOutput...