title: How to make video in Java captured from webcam through lti-Civil CaptureDeviceStream?
body: <p>Can I do it only with the lti-Civil classes or I need FMJ or JMF ?
  do I use the actual Stream or set of captured Images from CaptureObserver?</p>
  
  <p>Thanks.</p>
  
  <hr>
  
  <pre><code>    captureStream = system.openCaptureDeviceStream(info.getDeviceID());
              captureStream.setObserver(new CaptureObserver(){
  
                  public void onError(CaptureStream arg0, CaptureException arg1) {
                  }
  
                  public void onNewImage(CaptureStream streamSource, Image image) {
                      try
                      {
                          imageFrame.setImage(AWTImageConverter.toBufferedImage(image));
                          bufferedImage = AWTImageConverter.toBufferedImage(image);
                      }
                      catch (Throwable t)
                      {   t.printStackTrace(); }
  
                  }
  
              });
  captureStream.start();
  </code></pre>