@@ -0,0 +1,1265 @@
+package vars.avfoundation;%0A%0Aimport org.mbari.util.TimeUtilities;%0Aimport vars.shared.ui.video.ImageCaptureService;%0A%0Aimport java.awt.*;%0Aimport java.io.File;%0Aimport java.text.DateFormat;%0A%0A/**%0A * Created with IntelliJ IDEA.%0A * User: brian%0A * Date: 12/3/13%0A * Time: 11:07 AM%0A * To change this template use File %7C Settings %7C File Templates.%0A */%0Apublic class DemoApp %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        File saveDirectory = new File(args%5B0%5D);%0A        if (!saveDirectory.exists()) %7B%0A            saveDirectory.mkdirs();%0A        %7D%0A        AVFImageCaptureServiceImpl imageCaptureService = new AVFImageCaptureServiceImpl();%0A        String%5B%5D videoDeviceNames = imageCaptureService.videoDevicesAsStrings();%0A        String videoDevice = videoDeviceNames%5B0%5D;%0A        imageCaptureService.startSessionWithNamedDevice(videoDevice);%0A        for (int i = 0; i %3C 5; i++) %7B%0A            File target = new File(saveDirectory, %22snapshot%22 + i + %22.png%22);%0A            Image image = imageCaptureService.capture(target);%0A            if (image == null) %7B%0A                System.out.println(%22Failed to write %22 + target.getAbsolutePath());%0A            %7D%0A            else %7B%0A                System.out.println(%22Wrote %22 + target.getAbsolutePath());%0A            %7D%0A        %7D%0A%0A    %7D%0A%7D%0A

check point